procmail
[Top] [All Lists]

include custom scripts

2005-10-05 03:51:28
Hai ,

I configured procmail as MDA for sendmail.

My .procmail.rc looks like 

SHELL = /bin/bash
LOGFILE     = /home/test/pm.log
LOGABSTRACT = "all"
VERBOSE     = "on"
:0 c
| /bin/bash /home/test/ftp.sh

I want to run a script when mail has been delivered
through procmail. Its working. But the script has been
called before the mail delivery. Refer the following
procmail.log file 


procmail: [25785] Wed Oct  5 11:43:44 2005
procmail: Executing "/bin/bash,/home/test/ftp.sh"
procmail: [25785] Wed Oct  5 11:43:44 2005
procmail: Assigning "LASTFOLDER=/bin/bash
/home/test/ftp.sh"
From xyz(_at_)abc(_dot_)com  Wed Oct  5 11:43:44 2005
 Subject: Re: test mail
  Folder: /bin/bash /home/test/ftp.sh                 
                    1586
procmail: Locking "/var/mail/test.lock"
procmail: Assigning "LASTFOLDER=/var/mail/test"
procmail: Opening "/var/mail/test"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/test.lock"
procmail: Notified comsat: "test(_at_)10763:/var/mail/test"
From xyz(_at_)abc(_dot_)com  Wed Oct  5 11:43:44 2005
 Subject: Re: test mail
  Folder: /var/mail/test


I want to call the script after the mail delivery.
Please help me what to change in .procmail.rc file.


Sarav 



                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>