|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: header_checks PREPEND
nick
javacat.f2s.com
Date: Wed Nov 01 2006 - 05:04:14 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quoting Sandy Drobic <postfix-users
japantest.homelinux.com>:
> nick
javacat.f2s.com wrote:
> > Hi,
> >
> > Im looking to prepend [SPAM] to the Subject: of mails that come in with a preassigned X-SpamReason: value of 1..4.
> >
> > main.cf:header_checks = pcre:/etc/postfix/header_checks
> >
> > And in header_checks:
> > /X-SpamReason: Yes, hits=([1..4]\.[0-9]*).*required/ PREPEND Subject: [SPAM]
> >
> > However this is overwriting the Subject completely, and Im just getting [SPAM] in the Subject of the mail
> > once its received.
> >
> > Any idea what I could be doing wrong ?
>
> Prepend sets a new Subject header here. This is better done by your filter
> software. Header_checks can't set a subject header in relation to another
> check on x-spamreason.
>
> You either need a filter for that or do it directly in your spamfilter.
I see, thanks for the explanation.
Nick .
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]