Hi Avid, * "Avid Seeker" <avidsee...@disroot.org> [2025-05-15; 05:45 GMT]: > Is there a way to automatically tag all mail coming from a mailing list? > > i.e: something like > >> +news --- query:'header List-Id:'
you could configure notmuch to also index the List-Id: header like so: notmuch config set index.header.List List-Id after that for new email the List-Id: header will be indexed. After that notmuch tag +notmuch-news -- is:new AND List:notmuch will tag new email from the notmuch mailing list with the not so helpful tag notmuch-news. If you want this information also for email which arrived before this configuration change you would have to re-index all your email: notmuch reindex '*' which probably will take quite some time. Then notmuch tag +notmuch-news -- List:notmuch applies the tag to all email from this email list. If you would like to tag all emails from all lists: notmuch tag +news -- 'List:*' Ciao; Gregor -- -... --- .-. . -.. ..--.. ...-.- _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org