Greetings. I'm having trouble with one of my recipes. The recipe is
supposed to match on a certain from, drop a copy in a mail spool, and
redirect the message while quoting all of the headers and body of the
message to a given address. I also want to echo a couple lines of
text into the redirected message explaining why it was redirected and
"[REDIRECTED]" placed in the subject line. It somewhat works now.
The message is sent to a given address and a copy is stuck in a mail
spool but the headers aren't redirected with the message and the
subject line quoting also doesn't work. My test recipe is below.
Can anyone tell me what I'm missing? Thanks
Justin
:0
* ^From snip(_at_)snip(_dot_)edu
{
SUBJECT=`formail -zxSubject:`
:0c
* ! ^FROM_DAEMON
* ! $ ^X-Loop: $\ABUSE
| formail -r -k -b \
-I"From: Abuse redirect <postmater(_at_)snip(_dot_)net>" \
-I"To: junk <snip(_at_)snip(_dot_)edu>" \
-I"Subject: [REDIRECT] $SUBEJCT" \
-A"X-Loop: $ABUSE" | $SENDMAIL -t
:0:
/var/spool/mail/quarantine/test
}
--
--
Justin Shore, ES-SS ES-SSR Pittsburg State University
Network & Systems Manager Kelce 157Q
Office of Information Systems Pittsburg, KS 66762
Voice: (620) 235-4606 Fax: (620) 235-4545
http://www.pittstate.edu/ois/
Warning: This message has been quadruple Rot13'ed for your protection.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail