[Fixed] Adding a 'mailing list' filter

I am trying to create a filter within Proton Mail, that adds a label 'mailing list' whenever Proton marks an email as from a mailing list.

It doesn't seem so easily possible as far as i can tell and I don't have the time (or will at the moment) to try and create it with a Sieve filter.

Is there an easy way to do this?

5 points · 3 comments · view on lemmy.world

3 Comments

Nelizea@lemmy.world · 3 pts · 2y (2 replies)

Often such emails have a "List-Unsubscribe" header entry, thus you could check on that.

if allof(
    exists "List-Unsubscribe"
) { 
    fileinto "mailing list";
}
ff0000@lemmy.ml · 2 pts · 2y (1 reply)

This worked as expected! Thank you very much!

Nelizea@lemmy.world · 1 pts · 2y

You are welcome!