afewmail / afew

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

`spamfilter` doesn't work when Rspamd is used instead of SpamAssassin #299

Open nlewo opened 4 years ago

nlewo commented 4 years ago

When Rspamd classifies a mail as spam, it adds the header X-Spam: Yes while spamfilter searches for the header X-Spam-Flag which seems to be the flag added by SpamAssassin.

It would be nice to take into account both flags (ie, X-Spam-Flag and X-Spam).

GuillaumeSeren commented 4 years ago

Hey @nlewo I think that would a good subject for a PR, what do you think about it ?