On Sat, Jan 13, 2007 21:53:34 PM +0100, Dallman Ross
(dman(_at_)nomotek(_dot_)com) wrote:
* ^To:(_dot_)*(_at_)domain\(_dot_)com
|sed -e 's/^Subject:[ ]*/Subject: [DOMAIN] /'
:0 A: # use the colon for lockfile unless $DOMAIN is a dir
$DOMAIN
(Note, also, the "i" flag I added. You may find you need it, to
stop the pipe from closing prematurely on long messages. The "h"
flag causes the change only to apply to the header; don't bother
piping the whole message through sed! Oh -- and you don't need to
quote the "@" sign.)
unless he *wants* to match on him(_at_)domain(_dot_)com but *not* on
him(_at_)subdomain(_dot_)com, right?
--
The right way to make everybody love Free Standards and Free Software:
http://digifreedom.net/node/73
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail