Re: [PATCH] introduce new.rename_tags for renamed (moved) messages

Subject: Re: [PATCH] introduce new.rename_tags for renamed (moved) messages

Date: Fri, 21 Sep 2018 08:48:44 +0200

To: Michael J Gruber,


From: Gaute Hope

Michael J Gruber writes on July 6, 2018 16:04:
> IMAP clients (such as webmail) use folders to mark messages as junk
> etc., some even to mark messages as trash ("move to trash"). Such a
> change is reported by notmuch as a rename; the message is not tagged
> with new.tags since it is not new, so that there is no way to act upon a
> rename.
> Introduce new.rename_tags (default: not set) which are added by `notmuch
> new` to renamed messages. This allows to act upon renames, e.g. to keep
> the IMAP folder structure in sync with tags with a tool like `afew` or
> homecooked scripts simply by filtering for this tag in the same ways as
> one would filter for new messages using new.tags.


think this would be very useful. I suggested something similar way back[0]
(no doubt bit-rotted by now), and seem to remember there were some
issues with cases where a rename would not be detected. Might be worth
checking out !


BTW: My use-case was solved by using `lastmod:` queries in keywsync [1]
(later obsoleted by gmailieer[2]).


Regards, Gaute

part-000.sig (application/pgp-signature)
notmuch mailing list