Pass write for closed mails
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 9 Nov 2018 14:44:21 +0000 (15:44 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Fri, 9 Nov 2018 14:44:21 +0000 (15:44 +0100)
commitc702eede029cc80841172871d7fb674819d6a081
tree6cfec77336618a621c2d004eb9489881342fdb22
parentbe57fa9d9f52cdd52151c5a0a874abf108932c51
Pass write for closed mails

* src/folder-events.cpp (Invoke): Set is now implicit in close.
* src/mail.cpp: Change isAboutToBeMoved to passWrite.
(decryptVerify_o): Stop passing write when processing.
* src/mailitem-events.cpp (Write): Pass it when a mail was closed
by us.

--
After closing with discard changes it should be ok to write
as long as we are not decrypted again. This can be helpful
after an external close was triggered and is basically
the same as what we do for a move.

GnuPG-Bug-Id: T4241
src/folder-events.cpp
src/mail.cpp
src/mail.h
src/mailitem-events.cpp