Roundcube Community Forum

 

Filters plugin doesn't recognize X-Spam header

Started by bhy, July 15, 2018, 09:04:34 AM

Previous topic - Next topic

bhy

Hello,

I have rspamd running on our VPS which adds the flag "X-Spam: Yes" to the headers of emails that are considered as spam.

I have the Filters plugin for Roundcube enabled and it's configured to automatically move spam into the junk folder:

$config['autoAddSpamFilterRule'] = TRUE;

However, the spam messages still end up in the Inbox folder.

I thought that the Filters plugin would recognize the "X-Spam: Yes" header and move messages accoring to that rule. Is there any way to achieve this? Or the Filters plugin can only filter messages based on the content of the subject, and thus I need to configure rspamd to add something like [SPAM] to the subject?

Thank you very much for any clarification.

bhy

SKaero

Looking at the filter plugin code it only matches the spam by subject set in the $config['spam_subject'].