On Fri, Nov 10, 2006 at 12:21:12PM +1300, Simon wrote:
> >You can put it in any files you want.  /etc/mail/spamassassin/*.cf is read
> >last.
> 
> Cool - so to build a custom rule to block emails with a subject:
> It's Johnny :)
[...]
> I create a file /etc/mail/spamassassin/custom_sa_rules

custom_sa_rules.cf

> header    ITS_NAME_SMILEY   Subject =~ /\bIt\'s\b\:)/i

Sure, if you want to.  However, the rule's not going to match the text
you've specified.  \b is a word boundary, not whitespace, which is \s.
You also escape some things which don't need it ("'" and ":") and don't
escape other things which do need it (")").

-- 
Randomly Selected Tagline:
 Paul: Good way to avoid frostbite, folks, put your hands between 
  your buttocks. That's nature's pocket. 

Attachment: pgpV0dv7oDFq9.pgp
Description: PGP signature

Reply via email to