Hello,
I am seeing the below error message in my procmail log file.
procmail: Match on
"^To:.*(support(_at_)myold(_dot_)domain(_dot_)com|interest(_at_)myold(_dot_)domain(_dot_)com|followup(_at_)myold(_dot_)
domain.com|archive(_at_)myold(_dot_)domain(_dot_)com|managemnt(_at_)myold(_dot_)domain(_dot_)com|reports(_at_)myold(_dot_)
domain.com)"
procmail: Assigning "MATCH="
procmail: Matched " "'customer_support(_at_)myold(_dot_)domain(_dot_)com'"
<customer_support(_at_)myold(_dot_)domain(_dot_)com>"
procmail: Match on "^To:\/.*"
procmail: Assigning "NEWTO="
procmail: Error while writing to " echo $MATCH | sed
's/myold.domain.com/mynew.domain.com/g'"
procmail: Rescue of unfiltered data succeeded
procmail: Executing " echo $MATCH | sed
's/myold.domain.com/mynew.domain.com/g'"
procmail: Error while writing to " echo $MATCH | sed
's/myold.domain.com/mynew.domain.com/g'"
procmail: Rescue of unfiltered data succeeded
I am trying to use procmail and formail to change the domain to which an
email was sent to from myold.domain.com to mynew.domain.com using the
procmailrc file below. From the error message, I'm guessing that
procmail or formail is having trouble writing the new domain to the
email. Can anyone offer suggestions on why I am seeing the error message
and how to resolve it?
.procmailrc file:
:0
*
^To:.*(support(_at_)myold(_dot_)domain(_dot_)com|interest(_at_)myold(_dot_)domain(_dot_)com|\
followup(_at_)myold(_dot_)domain(_dot_)com|archive(_at_)myold(_dot_)domain(_dot_)com|\
managemnt(_at_)myold(_dot_)domain(_dot_)com|reports(_at_)myold(_dot_)domain(_dot_)com)
* ^To:\/.*
{
:0
#use sed to change old domain to new domain
NEWTO=| echo $MATCH | sed 's/myold.domain.com/mynew.domain.com/g'
:0 wf:foobar
#formail changes the header, -i keeps the old to as old-to
| formail -i "To: $NEWTO"
:0c
#puts mail matched from above into the Enqueuer
| /Applications/dialogEnqueuer -loglevel 10
:0c
#puts a copy into a mailbox for archive/backups
support_in
:0
#puts a copy into a mailbox for archive/backups keeps track of
bad customers..
olddomainMail
}
Thanks,
Adhamh
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail