From da035a60e3f34e1913222fab8aee5a9cf2935162 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Wed, 19 Sep 2018 15:50:26 +0300 Subject: [PATCH] dbox: cache pop3 order and uidl when saving mails --- src/lib-storage/index/dbox-common/dbox-save.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.47.3