procmail
[Top] [All Lists]

Running a script before delivering to $DEFAULT

2001-04-04 05:31:48
Hi,

I have the following receipe, which looks for a specific subject string and
then runs mail thru a perl script to clean up the mail. 

:0 f
* ^Subject:.*news mail from news server.*
| /home/subba/news/news.pl
$DEFAULT

The perl script prints the info to STDOUT($_).

I use qmail as my MTA. During the Qmail startup, I explictly ask Qmail to use
procmail as the delivery agent.

        qmail-start '|preline procmail -f-' splogger qmail

In my ~/.procmailrc, I have the above receipe and have the VERBOSE flag set
to "yes". I don't see any information getting logged to the "procmail.log".
The qmail logs show that the email is getting delivered. The email does appear
in the $DEFAULT directory, but without getting modified by the "news.pl" script.

The ~/.qmail has the following lines in it:

        |preline /home/subba/news/news.pl
        ./Maildir/
        |qbiff

Is there any step I am missing? I would like the mail pass through the script
and get delivered to the $DEFAULT.

Thank you in advance for any help.
-- 

Subba Rao
subba9(_at_)home(_dot_)com
http://members.home.net/subba9/

GPG public key ID 27FC9217
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Running a script before delivering to $DEFAULT, Subba Rao <=