[olug] procmail vacation intermittent error

Dave Weis djweis at internetsolver.com
Thu Sep 28 12:32:07 UTC 2006


Jon H. Larsen wrote:
> I have a procmail based vacation at work.  I have been encountering a 
> intermittent error that I can't seem to resolve.  My script seems to work 
> only half the time.  It only fails sometimes when attempting to cat a 
> files for inclusion in the outgoing response email.  
> 
> Here is the procmail code for the return message:
> 
> :0 fhw
> * ^Subject: *\/[^ ].*
> | $FORMAIL -I "Subject: I am away AutoReply (was: $MATCH)"
> 
> :0 fbw
> | $CAT $HOME/.vacation.msg
> 
> :0 w
> | $SENDMAIL -t -Rhdrs
> 

You might want to use lockfiles to make sure you aren't running the 
recipes in parallel. Change the first lines to :0???: (add trailing colon)

dave



More information about the OLUG mailing list