I am using: /bPO(?:\b ?#?|\d)/i
Here is what I am getting from sa: Content analysis details: (-0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 MISSING_MID Missing Message-Id: header -0.0 NO_RELAYS Informational: message was not relayed via SMTP -0.0 NO_RECEIVED Informational: message has no Received headers -0.1 AWL AWL: From: address is in the auto white-list My rules is not listed. -----Original Message----- From: Bowie Bailey [mailto:[EMAIL PROTECTED] Sent: Tue 12/2/2008 2:43 PM To: users@spamassassin.apache.org Subject: RE: Rule to catch PO# Karsten Bräckelmann wrote: > On Tue, 2008-12-02 at 12:35 -0500, Bowie Bailey wrote: > > Karsten Bräckelmann wrote: > > > > Btw, you need to escape the hash '#', not because this is an RE, > > > but because it is Perl. :) > > > > You don't need to escape the hash in a Perl RE unless you are using > > hash characters for the RE boundary markers. > > You're right. :) My bad. You need to escape the hash for SA, though. I wasn't aware of that. I guess I've never tried matching a hash with a SpamAssassin rule. In that case, my suggested rule becomes: Subject =~ /\bPO ?\#? ?\d/i -- Bowie