You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Stefan Varga <St...@unit.sk> on 2004/07/15 13:33:35 UTC
how to write a rule
Dear spamassassin users,
i want to write a rule for for my local.cf to filter "X-Spam-Flag: YES"
in my messages headers.
these 2 rules does not work for filtering words in headers..
header ONLY_XSPMFLGYS_SUBJ Subject =~ /\bX-Spam-Flag: YES\b/i
score ONLY_XSPMFLGYS_SUBJ 2.6
describe ONLY_XSPMFLGYS_SUBJ Obfuscated 'X-Spam-Flag: YES' in subject
body ONLY_XSPMFLGYS /\bX-Spam-Flag: YES\b/i
score ONLY_XSPMFLGYS 1.8
describe ONLY_XSPMFLGYS Obfuscated 'X-Spam-Flag: YES' in body
dooes anybody have any idea how to do this correct?
Stefan
Re: how to write a rule
Posted by Alex Pleiner <pl...@zeitform.de>.
* Alex Pleiner <pl...@zeitform.de> [2004-07-15 13:49]:
> You might want
> header ONLY_XSPMFLGYS X-Spam-Flag =~ /\bYES\b/i
... and as most of you already know, SA will remove this and some other
mail headers at an early stage of invocation. So this rule would be very
useless.
Sorry for replying to my own post.
Alex
--
Alex Pleiner
zeitform Internet Dienste OHG Fraunhoferstr. 5
64283 Darmstadt, Germany
http://www.zeitform.de Tel.: +49 (0)6151 155-635
mailto:pleiner@zeitform.de Fax: +49 (0)6151 155-634
GnuPG/PGP Key-ID: 0x613C21EA
Re: how to write a rule
Posted by Alex Pleiner <pl...@zeitform.de>.
* Stefan Varga <St...@unit.sk> [2004-07-15 13:34]:
> Dear spamassassin users,
> i want to write a rule for for my local.cf to filter "X-Spam-Flag: YES"
> in my messages headers.
> these 2 rules does not work for filtering words in headers..
> header ONLY_XSPMFLGYS_SUBJ Subject =~ /\bX-Spam-Flag: YES\b/i
> score ONLY_XSPMFLGYS_SUBJ 2.6
> describe ONLY_XSPMFLGYS_SUBJ Obfuscated 'X-Spam-Flag: YES' in subject
this matches "X-Spam-Flag: YES" within the subject
> body ONLY_XSPMFLGYS /\bX-Spam-Flag: YES\b/i
> score ONLY_XSPMFLGYS 1.8
> describe ONLY_XSPMFLGYS Obfuscated 'X-Spam-Flag: YES' in body
this matches "X-Spam-Flag: YES" within the body
> dooes anybody have any idea how to do this correct?
You might want
header ONLY_XSPMFLGYS X-Spam-Flag =~ /\bYES\b/i
Alex
> Stefan
--
Alex Pleiner
zeitform Internet Dienste OHG Fraunhoferstr. 5
64283 Darmstadt, Germany
http://www.zeitform.de Tel.: +49 (0)6151 155-635
mailto:pleiner@zeitform.de Fax: +49 (0)6151 155-634
GnuPG/PGP Key-ID: 0x613C21EA