]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Don't set POP3 UIDLs to empty values.
authorTimo Sirainen <tss@iki.fi>
Tue, 21 Sep 2010 14:22:16 +0000 (15:22 +0100)
committerTimo Sirainen <tss@iki.fi>
Tue, 21 Sep 2010 14:22:16 +0000 (15:22 +0100)
src/dsync/dsync-worker-local.c

index 4a5c245ff6feec865ac14fdda6594374ac4f58e9..3a39d4fe057521fd8f7e50cf4dc7b1458f936403 100644 (file)
@@ -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);