Hi guys
I wrote the following code for my .procmailrc file. It mainly works fine,
fowarding the body of the received "test(_at_)mydomain" msg to the new address
after replacing the subject, but it will not spoof the "From:" or
"Reply-To:" address. Instead, it always shows as being from my main
account. The email is fwd'ed going to a handheld device that has a rather
cumbersome keyboard and extremely limited email handling.
What am I doing wrong?
Thanks!
Matt
########
:0c # forward test messages
* ^(Cc|To).*test
* !^X-Loop: test
{
# appends new message info to the log file
:0c
| (echo `date` >> $HOME/pmrcs/test.log ; \
formail -k -x "From:" -x "Subject:" >> $HOME/pmrcs/test.log)
# still not spoofing FROM addr
:0:
| (formail -rk -p "" \
-i "Reply-To: test(_at_)mydomain(_dot_)com" \
-i "From: test(_at_)mydomain(_dot_)com" \
-I "To: mydevice(_at_)otherdomain(_dot_)com" \
-I "Subject: test" ;\
echo "." \
)| $SENDMAIL -t -oi
}
____________________________________________________________
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