I'd like to add the original headers when I warn a sender that I denied
their message due to a virus. I know it's quite trivial to pass just the
headers, but I can't find a simple way to store them all. Here's the jist
of what I'm after:
:0
< various checks >
{
:0h
| (formail -r -I "Subject: Virus/Worm Infection"; \
echo "You recently sent a message to one of our users that contained a
virus."; \
echo "The headers of your original message were: "; \
echo "$VAR"; \
echo "To clean the virus, please see $PAGE"; \
) | /usr/sbin/sendmail -t
/dev/null
}
I see it dropping in to the last recipe properly, but I can find an easy
way to throw in the old headers at $VAR. Everything I checked showed
breaking the headers out singly into variables. Is this the only way to
go about it? I also found how to drop the headers into a file and cat
that into the message, but then I'm forced to spawn another process to
wipe the file after each message.
--
Kip Turk spamdies(_at_)wcc(_dot_)net
Systems Administrator/Killer of Spam/Writer of Code/Penguin Proponent
West Central Net - tel: 915.234.5678 / 800.695.9016 fax: 915.656.0071
-.-. --- -.. . / -- --- -. -.- . -.-- --..-- / .... .- -.-. -.- . .-.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail