procmail
[Top] [All Lists]

Re: include custom scripts

2005-10-05 05:53:34
saravanan ganapathy:

Is there any possibility that
procmail can say 'error in mail delivery' if any error
occurs in the script which I included?

I assume now that you don't want the ftp to happen if the mail didn't
get delivered properly.


   SHELL       = '/bin/sh'
   LOGFILE     = "$HOME/pm.log"
   LOGABSTRACT = 'all'
   VERBOSE     = 'on'

   TRAP = 'myscript $LASTFOLDER'

   :0:
   $DEFAULT

   TRAP # unset
   DEFAULT = '/dev/null'



Alternatively, make the first TRAP

   TRAP = 'myscript $LASTFOLDER 0'

and the second

   TRAP = "myscript \$LASTFOLDER $?"

-- 
Grtz, Ruud


____________________________________________________________
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>