deleted flag maildir sync

Subject: deleted flag maildir sync

Date: Sat, 6 Apr 2019 19:01:44 +0200 (CEST)

To: notmuch@freelists.org

Cc:

From: gras.appart@free.fr


Hello,

I plan to use notmuch together with isync and an imap account. I would like to be able to delete messages using the IMAP mechanism based on the \Deleted flag and expunge operation.

My idea would to sync the notmuch 'deleted' flag with the 'T' maildir flag, that isync already synchronizes with the \Deleted IMAP flag. The expunge operation is taken care by isync.

I've seen that the 'deleted' flag is excluded from the notmuch maildir sync feature. Could you explain the rationale behind this choice ? (*)

Assuming that synchronizing the 'deleted' flag sync is not a bad idea in my use case, can I achieve this by simply adding an entry in the tag2flag array defined in,

https://github.com/notmuch/notmuch/blob/87934c432c4bee9df09f268a3f05933c59c2caf1/lib/message.cc#L71

? Is there any pitfall I should be aware of ?

Thanks in advance for your inputs,

Philippe.

(*) The documentation refers to the mailing list for a discussion of this topic, but I couldn't find the discussion in the archives.


Thread: