[Ilugc] help needed for procmail
saravanan ganapathy
sarav_gsa at yahoo.com
Wed Oct 5 00:41:41 IST 2005
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.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.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
More information about the ilugc
mailing list