diff options
author | Kali Kaneko <kali@leap.se> | 2015-06-25 10:45:46 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-06-25 16:44:45 -0400 |
commit | d50b7c95cdfe709ae584caf8c726ddefb2514411 (patch) | |
tree | 3876894b74a16e16a3482eeca907e1eaf01790a0 /mail/versioneer.py | |
parent | 0bc30f37c0f47a7b99e6e70a589fbc9b714cb297 (diff) |
[bug] avoid duplication of copies in draft folder
Although this draft-saving feature seems to be somehow brittle, since it
breaks from time to time, the causes are different and subtle on each
case.
This time the bug is related to having the notify_just_mdoc (or
fast_notifies as I'm tempted to call it in the future for more clarity)
set to True by default in the APPENDS.
Fast notifies break the "save draft" functionality because what
Thunderbird does is an Append of the newest message, followed by
deletion of the old message and a SEARCH by Message-ID. For this we need
the headers-doc to be already inserted in the store.
Since the fast-notify makes a *big* difference in terms of insertion
times for serialized appends, I've opted for using a heuristic for
detecting if it's the case of a Draft message, using a mozilla-specific
header. If this is found, we set the notify_just_mdoc unconditionally to
False. We'll deal with other MUAs on its due time.
Releases: 0.4.0
Diffstat (limited to 'mail/versioneer.py')
0 files changed, 0 insertions, 0 deletions