* David W. Tamkin <dattier(_at_)ripco(_dot_)com> spake thus:
Stig advised Adhamh,
methinks the above line should be
:0 ifh
h - only send the header to the pipe, save some processing
It's unnecessary in this particular case, but it's harmless.
f - consider the recipe a filter, the mail is not delivered if
this recipe succeds.
No, because it's a variable capture recipe, not a filter. Using `f' will
get a different error message about an extraneous filter flag.
[snip]
The recipe should read
:0i # (or :0hi if you like) use sed to change old domain to new domain
NEWTO=| echo $MATCH | sed 's/myold.domain.com/mynew.domain.com/g'
I don't quite understand that, why? As I understood it, Adhamh wanted
the message to be processed by the next recipe as well, and I thought
that without a `f' in the recipe `head', the recipe would be considered
a delivering recipe, thus processing for that mail would terminate
(unless a `c' was used to keep processing on a copy that is).
Is it because of the `NEWTO=' part in the beginning of the line? Please
point me to where this is explained, I can't find it in the docs. Maybe
I just can't see the forest for all the trees though.
Stig
--
brautaset.org
Registered Linux User 107343
``Oh, how I wish `undo' was ported to everyday life.''
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail