procmail
[Top] [All Lists]

Re: Subject Rewrite and Move

2007-01-14 13:43:36
On Sun, Jan 14, 2007 at 07:07:02AM +0100, M. Fioretti wrote:

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?

I'm afraid I don't understand your comment.  I merely showed the
OP how to do what he said already he wanted to do.

Oh, I think I see: you think I said he doesn't *need* the @
sign.  That's not what I said at all.  I said he doesn't need
to *quote* it, as in "\@", which is what he had.

Dallman

____________________________________________________________
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

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