procmail
[Top] [All Lists]

Problem with MATCH?

1998-01-02 15:44:12
I am having a problem with a recipe using MATCH.  I get emails with the
subject

   Subject: H/W difference report for HOSTNAME

where HOSTNAME is the name of some computer.  Our hostnames follow a
particular pattern.  For example, mine is suw3isd06, meaning

    su    ->   Sun Microsystems   (also SGI [sg], Alpha [al], and HP [hp])
    w3    ->   Wickham 3          (the building)
    isd   ->   the program/group  (we have a bunch of 3-letter codes for 
programs)
    06    ->   just a number      (a handful have no leading zero)

I only want to see these reports from certain programs, so I tried the
following:

:0
* ^Subject: H/W difference report for \/[^ ]+
{
   :0:
   * MATCH ?? (su|sg|hp|al)w[123](isd|svr|ipl|aip|gpc)[0-9]+
   $DEFAULT

   :0
   /dev/null
}

However, reports from machines whose names don't match the regex are getting
through.  Any ideas about this?

JcL

-- 
Justin C. Lloyd               Harris Corporation, ISD     Voice  407/984-5558
jlloyd(_at_)harris(_dot_)com             505 John Rodes Blvd.        Fax    
407/984-6323
Unix System Administrator     Melbourne, FL  32935        Office  W3/1802

<Prev in Thread] Current Thread [Next in Thread>