]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Don't reset mail_save_context.saving too early.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 29 Sep 2016 11:15:32 +0000 (14:15 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 13 Oct 2016 08:19:19 +0000 (10:19 +0200)
commitc94368100582f7aff217ccfaa1ffd73f7057f0c6
tree247e8248bf794a01a26c1de25c34400760abbd28
parent88b127ba81d0f122b8406f72ab656cf6e59a0b86
lib-storage: Don't reset mail_save_context.saving too early.

If mailbox_save_using_mail() ended up in mail_storage_copy(), saving was set
to FALSE before the copy() method was finished running. This caused e.g.
notify plugin to think that this was a copy event instead of a save event.

Added comments and asserts to clarify how the logic should work between
all the different copying/moving/saving flags.
src/lib-storage/mail-copy.c
src/lib-storage/mail-storage-private.h
src/lib-storage/mail-storage.c