You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ram <ra...@netcore.co.in> on 2012/12/12 05:54:28 UTC

How do I write a custom rule to match any header

I want to write a custom rule to match if "Any header" contain a 
particular string


How do I do this ?



Re: How do I write a custom rule to match any header

Posted by Christian Recktenwald <sp...@citecs.de>.
On Wed, Dec 12, 2012 at 10:24:28AM +0530, Ram wrote:
> I want to write a custom rule to match if "Any header" contain a 
> particular string
> 
> 
> How do I do this ?

man Mail::SpamAssassin::Conf  says:

	    [...]
	header SYMBOLIC_TEST_NAME header op /pattern/modifiers [if-unset: STRING]
	    [...]
		"header" is the name of a mail header, such as 'Subject', 'To', etc.
	    [...]
		There are several special pseudo-headers that can be
		specified:

		"ALL" can be used to mean the text of all the message's headers.
	    [...]

HTH, chris