procmail
[Top] [All Lists]

Simplifying a Recipe?

2004-05-17 19:04:14
I'm in the process of reviewing Scott Wiersdorf's wonder tutorial but
haven't come to this point yet.

What I would like to do is simplify a recipe that is repeating such as
this example:

#Mail from the Postmaster
:0
*^ 
(From|Cc|To).*(root(_at_)libranet|root(_at_)localhost|postmaster(_at_)libranet|\
postmaster(_at_)localhost|mpierce(_at_)libranet|mpierce(_at_)localhost)
{
  LOG="ACCEPTED MAIL - "
  :0
    root/
}

I've used multiple uses of root, postmaster and mpierce. Could I write
*^ (From|Cc|To).*(root|postmaster|mpierce)(@libranet|@localhost)

Would it then work?


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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