mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 23:16:30 +03:00
Improve drafts detection
systemli.org seems not to include Received: header in messages sent to self, including BCC-self and messages sent to Saved message chat. This results in all these messages not being displayed on other devices in multi-device setting. To work around this problem we restrict draft detection based on Received: header to classical mails. Delta Chat already implements proper draft detection based on the \Draft message flag and \Drafts folder flag. However, Thunderbird does not set \Draft flag when message is stored as "Template". To make draft detection for Thunderbird more robust, in case Received: header check is removed altogether later, we check for X-Mozilla-Draft-Info header which Thunderbird sets both for "Drafts" and "Templates".
This commit is contained in:
@@ -25,6 +25,12 @@ pub enum HeaderDef {
|
||||
/// we need to check that header as well.
|
||||
XMicrosoftOriginalMessageId,
|
||||
|
||||
/// Thunderbird header used to store Draft information.
|
||||
///
|
||||
/// Thunderbird 78.11.0 does not set \Draft flag on messages saved as "Template", but sets this
|
||||
/// header, so it can be used to ignore such messages.
|
||||
XMozillaDraftInfo,
|
||||
|
||||
ListId,
|
||||
References,
|
||||
InReplyTo,
|
||||
|
||||
Reference in New Issue
Block a user