Return-Path: X-Original-To: apmail-spamassassin-users-archive@www.apache.org Delivered-To: apmail-spamassassin-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0744EDA13 for ; Wed, 12 Dec 2012 09:11:59 +0000 (UTC) Received: (qmail 28446 invoked by uid 500); 12 Dec 2012 09:11:56 -0000 Delivered-To: apmail-spamassassin-users-archive@spamassassin.apache.org Received: (qmail 28169 invoked by uid 500); 12 Dec 2012 09:11:49 -0000 Mailing-List: contact users-help@spamassassin.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@spamassassin.apache.org Received: (qmail 28095 invoked by uid 99); 12 Dec 2012 09:11:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 09:11:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of spamassassin-talk-dist@citecs.de designates 212.9.189.66 as permitted sender) Received: from [212.9.189.66] (HELO gw.citecs.de) (212.9.189.66) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 09:11:39 +0000 Received: from ray.citecs ([10.0.0.30]) by gw.citecs.de with esmtp (Exim 3.35 #1 (Debian)) id 1TiiLU-0004aE-00; Wed, 12 Dec 2012 10:11:16 +0100 Received: from chris by ray.citecs with local (Exim 3.35 #1 (Debian)) id 1TiiLT-0001KR-00; Wed, 12 Dec 2012 10:11:15 +0100 Date: Wed, 12 Dec 2012 10:11:15 +0100 From: Christian Recktenwald To: Ram Cc: users@spamassassin.apache.org Subject: Re: How do I write a custom rule to match any header Message-ID: <20121212091115.GA5014@citecs.de> Reply-To: Christian Recktenwald References: <50C80E04.2080101@netcore.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50C80E04.2080101@netcore.co.in> User-Agent: Mutt/1.3.28i X-pgp-fingerprint: 1024bit / E2 B2 C7 47 5D CF 6A A4 89 4C DC C3 36 7F C4 25 X-pgp-key-url: http://www.citecs.de/pgpkey.chris.asc Organization: private X-Virus-Checked: Checked by ClamAV on apache.org 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