Mercurial > dovecot > core-2.2
changeset 22346:bfe785a8ae62
lib-storage: Clarify keywords handling in mail_save_finish
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Thu, 29 Jun 2017 13:22:32 +0300 |
parents | 9c6f9b5ca1fa |
children | df67c602f267 |
files | src/lib-storage/mail-storage.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.c Wed Jun 28 13:45:19 2017 +0300 +++ b/src/lib-storage/mail-storage.c Thu Jun 29 13:22:32 2017 +0300 @@ -2368,6 +2368,8 @@ { struct mail_save_context *ctx = *_ctx; struct mailbox_transaction_context *t = ctx->transaction; + /* we need to keep a copy of this because save_finish implementations + will likely zero the data structure during cleanup */ struct mail_keywords *keywords = ctx->data.keywords; enum mail_flags pvt_flags = ctx->data.pvt_flags; bool copying_via_save = ctx->copying_via_save;