On Mon, 22 Dec 2003, Brent J. Nordquist <[EMAIL PROTECTED]> wrote:

> I've noticed several messages (all spam) with this header:
> 
> X-MT-17: 1906684
> X-MT-25: 1906684
> etc.
> 
> Is there a way to write a rule that tests for a header whose name
> matches a certain pattern?

OK, thanks to Robert for prodding me in the right direction.  This works:

header HDR_X_MT         ALL =~ /^X-MT-\d+:\s+\d+/

What was messing it up was anchoring it with $ at the end... I guess that
doesn't work with ALL =~ for some reason.

-- 
Brent J. Nordquist <[EMAIL PROTECTED]> N0BJN
Other contact information: http://kepler.acns.bethel.edu/~bjn/contact.html
* Fast pipe * Always on * Get out of the way - Tim Bray http://tinyurl.com/7sti




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to