I'm trying to use procmail to run a shell script on command. I use a web
interface to build the shell script as the message body and send the
message out. Then procmail grabs the message, puts the body in a blank
file that's already chmod'd to execute, and executes the script. But for
some reason, procmail is putting 5 copies of the body into the blank file.
Here's the recipe in question:
# the poplock removal stuff
:0:
* ^TO_(_dot_)*root(_at_)wcc\(_dot_)net
* From:(_dot_)*ums(_at_)wcc\(_dot_)net
* Subject:.*superduperscripttoremovepoplocks
{
:0bc
/root/scripts/diepopper
:0
| /root/scripts/diepopper
}
/dev/null
The web interface portion is building the message correctly, as I can
comment out this recipe and receive the message with only one copy of the
shell script in the body. I'm sure I've missed something obvious, but I
certainly can't see it. I've tried the second portion without the "c",
but it had no effect.
--
===============================================
Kip Turk phone: 915.234.5678
Systems Administrator or 800.695.9016
Killer of Spam/Writer of Code/Penguin Proponent
West Central Net fax: 915.656.0071
===============================================
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail