Author Topic: Filters plugin doesn't recognize X-Spam header  (Read 229 times)

Offline bhy

  • Newbie
  • *
  • Posts: 3
Filters plugin doesn't recognize X-Spam header
« on: July 15, 2018, 09:04:34 AM »
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:

Code: [Select]
$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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,376
    • http://SKaero.com/
Re: Filters plugin doesn't recognize X-Spam header
« Reply #1 on: July 15, 2018, 02:08:33 PM »
Looking at the filter plugin code it only matches the spam by subject set in the $config['spam_subject'].