[CLUE-Tech] using procmail to send a message to a script?

Todd Williams hp205ctl at hotpop.com
Mon Oct 21 01:45:16 MDT 2002


Dave Price wrote:
 > Hi,
 >
 > I have a procmail recipe that can identify a specific message and move
 > it to a folder, but I would like to send it thru a perl script  before
 > sending it to the folder.
 >
 > The perl script strips all the ads out of the message and retains just
 > the pertinant text from the body - any idea how to go about this.
 >
 > (The perl code is written to read and write from STDIN and STDOUT)
 >
 > aloha,
 > dave

use a pipe symbol at the beginning of the action line in procmail
something like:

:0:
* procmailrecipe
| perlscript >> folder

Todd Williams





More information about the clue-tech mailing list