afewmail / afew

an initial tagging script for notmuch mail
ISC License
325 stars 98 forks source link

FolderNameFilter not tagging all folders #213

Open Ganneff opened 5 years ago

Ganneff commented 5 years ago

Hi,

I use ListMailsFilter, ArchiveSentMailsFilter and FolderNameFilter with the following settings

[ListMailsFilter] [ArchiveSentMailsFilter] sent_tag=sent [FolderNameFilter] folder_transforms = Junk:spam Drafts:draft Sent:sent Sentmail:sent folder_lowercases = true

and have one problem:

Mail that I send to a mailinglist obviously gets stored in my SentMail folder, and the sent tag applied. Fine. Now it comes back to me via the mailinglist and I would expect to get the list tags AND the folder tags applied. But only list tags apply, no folder one gets added.

Example:

Mails to the list from anyone else have the following tags:

debian ganneff lists lists/debian-private mailinglisten private

while mails from me to the list end with those tags:

lists lists/debian-private sent

where all of debian ganneff mailinglisten private are tags that the FolderNameFilter is setting (or not).

This (to me) shows that the FolderNameFilter is not working correctly on the list copy of my mail. But it should. Yes, I know, the list mail has the same message-id as the sent one, but still, it just got back to us, add the tags, please.

Greetings, Ganneff