procmail
[Top] [All Lists]

Re: ERROR: rescue of unfiltered data succeeded

2002-01-18 13:33:44
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.

| i - ignore write errors on this recipe (even the logfile
|     indicates this)

Yes; that's what Adhamh needs, the `i' flag, because the command in the
action line won't be reading the message text.

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'




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