Identify newsletters by adding list-unsubscribe in email filter tags

Hi,

I want to identify the newsletters that arrive in our main mailbox, which is linked to our zammad, and close them automatically.

The best way to do this, I think, is to identify e-mails with the “list-unsubscribe” header, because all newsletters sent by trusted providers have this header.

Is it easy to add this feature?

For the moment, I added list-id with regex “not empty” but not sure it is the good approach.

Here is an example of newsletter received today and which have only List-Unsubscribe property to identify it.

So, not working with List-Id or all other available filter tag.

Sincerely
zz

tag added on Github.
pending for review :wink:

2 Likes

Even though I wasn’t fast enough, thank you very much for your contribution. :wink: