]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: Save POP3 UIDL if it's specified.
authorTimo Sirainen <tss@iki.fi>
Mon, 22 Feb 2010 14:58:12 +0000 (16:58 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 22 Feb 2010 14:58:12 +0000 (16:58 +0200)
--HG--
branch : HEAD

src/lib-storage/index/dbox-common/dbox-save.c

index afd7ec0db56358b5674b18ab778bf320f2a66a5c..836c5a87f7ed291585a8889371637e0065cdab16 100644 (file)
@@ -131,6 +131,10 @@ void dbox_save_write_metadata(struct mail_save_context *ctx,
                i_unreached();
        str_printfa(str, "%c%llx\n", DBOX_METADATA_VIRTUAL_SIZE,
                    (unsigned long long)vsize);
+       if (ctx->pop3_uidl != NULL) {
+               str_printfa(str, "%c%s\n", DBOX_METADATA_POP3_UIDL,
+                           ctx->pop3_uidl);
+       }
 
        guid = ctx->guid;
        if (guid != NULL)