afewmail / afew

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

M$ Office365 spam filter #323

Open agenbite opened 2 years ago

agenbite commented 2 years ago

For those of us lucky enough to be forced to "enjoy" an Office365 mail account, these filters below complement afew's default spam filter by leveraging O365 spam classification algorithm:

[HeaderMatchingFilter]
header = X-Forefront-Antispam-Report
pattern = SFV:SPM
tags = +spam; -new

[HeaderMatchingFilter.1]
header = X-Microsoft-Antispam
pattern = BCL:[456789]
tags = +spam; -new

[HeaderMatchingFilter.2]
header = X-Forefront-Antispam-Report
pattern = SCL:[569]
tags = +spam; -new

I leave them here in case others might find them useful. I'm sure the pattern can be collapsed into a single expression, but it works fine as it is.

Thanks for afew!

GuillaumeSeren commented 2 years ago

Hey @agenbite , Thank you for the share I am sure some will be happy to find those.