Scott Moseman Monday, September 24, 2007 6:02 PM:
:0
* ^X-Spam-Flag: YES
{
:0fhw
| /etc/procmail/scripts/spam_log.pl "$FROMHDR" "$SUBJHDR"
:0
spam
}
When I run the above pair, the output to "spam" is messed up and the
output that goes into /var/log/procmail is cut short (no From or
Subject). Am I doing this wrong? Is there a better way to do it such
that I can parse the email (at least the headers, maybe the body
later) and still have normal delivery and logging?
You could try reversing the logic.
:0 c:
* ^X-Spam-Flag: YES
spam
:0 A
| etc/procmail/scripts/spam_log.pl "$FROMHDR" "$SUBJHDR"
--
dman
____________________________________________________________
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