]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: cache pop3 order and uidl when saving mails
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Wed, 19 Sep 2018 12:50:26 +0000 (15:50 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 14 Nov 2018 12:48:40 +0000 (14:48 +0200)
src/lib-storage/index/dbox-common/dbox-save.c

index 21a9a923ec52188c18562d12f7b7459ee6162659..b8ef9a480a7fbce029e01aa43ac0595ec194ee9e 100644 (file)
@@ -121,6 +121,10 @@ void dbox_save_end(struct dbox_save_context *ctx)
        index_mail_cache_parse_deinit(ctx->ctx.dest_mail,
                                      ctx->ctx.data.received_date,
                                      !ctx->failed);
+       if (!ctx->failed)
+               index_mail_cache_pop3_data(ctx->ctx.dest_mail,
+                                          mdata->pop3_uidl,
+                                          mdata->pop3_order);
 }
 
 void dbox_save_write_metadata(struct mail_save_context *_ctx,