dovecot-2.0: dsync: Don't set POP3 UIDLs to empty values.

dovecot at dovecot.org dovecot at dovecot.org
Tue Sep 21 17:23:00 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/8b1ec21f50e6
changeset: 12145:8b1ec21f50e6
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Sep 21 15:22:16 2010 +0100
description:
dsync: Don't set POP3 UIDLs to empty values.

diffstat:

 src/dsync/dsync-worker-local.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 0d101d089b5b -r 8b1ec21f50e6 src/dsync/dsync-worker-local.c
--- a/src/dsync/dsync-worker-local.c	Tue Sep 21 15:11:05 2010 +0100
+++ b/src/dsync/dsync-worker-local.c	Tue Sep 21 15:22:16 2010 +0100
@@ -1690,7 +1690,8 @@
 	mailbox_save_set_guid(save_ctx, msg->guid);
 	local_worker_msg_save_set_metadata(worker, worker->mail->box,
 					   save_ctx, msg);
-	mailbox_save_set_pop3_uidl(save_ctx, data->pop3_uidl);
+	if (*data->pop3_uidl != '\0')
+		mailbox_save_set_pop3_uidl(save_ctx, data->pop3_uidl);
 
 	mailbox_save_set_received_date(save_ctx, data->received_date, 0);
 


More information about the dovecot-cvs mailing list