You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Guillaume Demillecamps <gu...@demillecamps.be> on 2019/08/01 13:46:24 UTC
conditional header rewrite ?
Hi,
I'd like to know if it's possible to rewrite a specific header
(subject, in this case), depending on specific rules being triggered
or not. Practical case : subject having a custom text saying "spam
from this country" or "spam of this type", or "suspect attachment
detected" etc...
Thanks !
Guillaume D.
Re: conditional header rewrite ?
Posted by Bill Cole <sa...@billmail.scconsult.com>.
On 1 Aug 2019, at 9:46, Guillaume Demillecamps wrote:
> Hi,
>
>
> I'd like to know if it's possible to rewrite a specific header
> (subject, in this case), depending on specific rules being triggered
> or not. Practical case : subject having a custom text saying "spam
> from this country" or "spam of this type", or "suspect attachment
> detected" etc...
Yes and no...
SpamAssassin can only rewrite "Subject", "From" or "To" headers and
while it can use "Template Tags" (see 'perldoc
Mail::SpamAssassin::Conf') it has no support for more complex logic.
Note that if you rewrite those headers, you will break almost any DKIM
signature.