From: Timo Sirainen Date: Tue, 21 Sep 2010 14:22:16 +0000 (+0100) Subject: dsync: Don't set POP3 UIDLs to empty values. X-Git-Tag: 2.0.4~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c584cd900ce0346738dad9fc80698f3e53968f46;p=thirdparty%2Fdovecot%2Fcore.git dsync: Don't set POP3 UIDLs to empty values. --- diff --git a/src/dsync/dsync-worker-local.c b/src/dsync/dsync-worker-local.c index 4a5c245ff6..3a39d4fe05 100644 --- a/src/dsync/dsync-worker-local.c +++ b/src/dsync/dsync-worker-local.c @@ -1690,7 +1690,8 @@ local_worker_msg_save(struct dsync_worker *_worker, 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);