From: Josef 'Jeff' Sipek Date: Wed, 19 Sep 2018 12:50:26 +0000 (+0300) Subject: dbox: cache pop3 order and uidl when saving mails X-Git-Tag: 2.3.9~1379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da035a60e3f34e1913222fab8aee5a9cf2935162;p=thirdparty%2Fdovecot%2Fcore.git dbox: cache pop3 order and uidl when saving mails --- diff --git a/src/lib-storage/index/dbox-common/dbox-save.c b/src/lib-storage/index/dbox-common/dbox-save.c index 21a9a923ec..b8ef9a480a 100644 --- a/src/lib-storage/index/dbox-common/dbox-save.c +++ b/src/lib-storage/index/dbox-common/dbox-save.c @@ -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,