You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Vicki Brown <vl...@cfcl.com> on 2005/04/01 04:54:12 UTC

Testing for an X-header

I have some X-headers I'm adding with Procmail, e.g.
   X-Procmail: [DEAR-OCCUPANT]

I thought that SA's "ALL" header test type would do the trick for matching
these but it doesn't seem to be triggering.

The rule
 header CF_DEAR_OCCUPANT         ALL =~ /\[DEAR-OCCUPANT\]/
 score CF_DEAR_OCCUPANT          0.5
 describe CF_DEAR_OCCUPANT       Not explicitly To (or Cc) me

The email
 From: "Online Pharmacy-Wholesale" <wl...@----.nl>
 To: <sv...@cfcl.com>
 Subject: Frequency
 Date: Thu, 31 Mar 2005 18:35:44 -0800
 X-Priority: 3
 X-Procmail: [DEAR-OCCUPANT]
 X-Spam-Flag: YES
 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on cfcl.com
 X-Spam-Level: *****
 X-Spam-Status: Yes, score=5.2 required=0.5 tests=EXTRA_MPART_TYPE,
	FORGED_RCVD_HELO,HTML_90_100,HTML_IMAGE_ONLY_16,HTML_MESSAGE
	autolearn=disabled version=3.0.2


p.s. Yes, ran spamassassin --lint
p.p.s. Yes I hupped spamd
-- 
Vicki Brown          ZZZ
Journeyman Sourceror:  zz  |\     _,,,---,,_     Code, Docs, Process,
Scripts & Philtres      zz /,`.-'`'    -.  ;-;;,_   Perl, WWW, Mac OS X
http://cfcl.com/vlb       |,4-  ) )-,_. ,\ ( `'-'   SF Bay Area, CA  USA
_______________________  '---''(_/--'  `-'\_)  ___________________________

Re: Testing for an X-header

Posted by Rocky Olsen <ro...@mindphone.org>.
is procmail running before or after SA?

if sa is running after procmail, you should just be able to do

header	CF_DEAR_OCCUPANT	X-Procmail =~/\[DEAR-OCCUPANT\]/

at least afaik.

-Rocky

On Thu, Mar 31, 2005 at 06:54:12PM -0800, Vicki Brown wrote:
> I have some X-headers I'm adding with Procmail, e.g.
>    X-Procmail: [DEAR-OCCUPANT]
> 
> I thought that SA's "ALL" header test type would do the trick for matching
> these but it doesn't seem to be triggering.
> 
> The rule
>  header CF_DEAR_OCCUPANT         ALL =~ /\[DEAR-OCCUPANT\]/
>  score CF_DEAR_OCCUPANT          0.5
>  describe CF_DEAR_OCCUPANT       Not explicitly To (or Cc) me
> 
> The email
>  From: "Online Pharmacy-Wholesale" <wl...@----.nl>
>  To: <sv...@cfcl.com>
>  Subject: Frequency
>  Date: Thu, 31 Mar 2005 18:35:44 -0800
>  X-Priority: 3
>  X-Procmail: [DEAR-OCCUPANT]
>  X-Spam-Flag: YES
>  X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on cfcl.com
>  X-Spam-Level: *****
>  X-Spam-Status: Yes, score=5.2 required=0.5 tests=EXTRA_MPART_TYPE,
> 	FORGED_RCVD_HELO,HTML_90_100,HTML_IMAGE_ONLY_16,HTML_MESSAGE
> 	autolearn=disabled version=3.0.2
> 
> 
> p.s. Yes, ran spamassassin --lint
> p.p.s. Yes I hupped spamd
> -- 
> Vicki Brown          ZZZ
> Journeyman Sourceror:  zz  |\     _,,,---,,_     Code, Docs, Process,
> Scripts & Philtres      zz /,`.-'`'    -.  ;-;;,_   Perl, WWW, Mac OS X
> http://cfcl.com/vlb       |,4-  ) )-,_. ,\ ( `'-'   SF Bay Area, CA  USA
> _______________________  '---''(_/--'  `-'\_)  ___________________________

-- 
______________________________________________________________________


what's with today, today?

Email:	rocky@mindphone.org
PGP:	http://rocky.mindphone.org/rocky_mindphone.org.gpg