[olug] procmail vacation intermittent error

Jon H. Larsen relayer at levania.org
Thu Sep 28 18:44:36 UTC 2006


Well, I wrote around the problem.  Instead of solely using procmail for 
the problem, I piped into perl and took care of the problem.  Thanks for 
suggestions!

Jon L.

On Thu, 28 Sep 2006, Jon H. Larsen wrote:

> Date: Thu, 28 Sep 2006 08:17:21 -0500 (CDT)
> From: Jon H. Larsen <relayer at levania.org>
> Reply-To: Omaha Linux User Group <olug at olug.org>
> To: Omaha Linux User Group <olug at olug.org>
> Subject: Re: [olug] procmail vacation intermittent error
> 
> 
> I changed the lines to :0 ???: vacation.lock
> 
> Got the same result:
> procmail: Unlocking "vacation.lock"
> procmail: Locking "vacation.lock"
> procmail: Executing "cat,/home/user1/admin1/.vacation.msg"
> procmail: Error while writing to "cat"
> procmail: Rescue of unfiltered data succeeded
> procmail: Unlocking "vacation.lock"
> procmail: Locking "vacation.lock"
> 
> Puzzling, eh?
> 
> On Thu, 28 Sep 2006, Dave Weis wrote:
> 
> > Date: Thu, 28 Sep 2006 07:32:07 -0500
> > From: Dave Weis <djweis at internetsolver.com>
> > Reply-To: Omaha Linux User Group <olug at olug.org>
> > To: Omaha Linux User Group <olug at olug.org>
> > Subject: Re: [olug] procmail vacation intermittent error
> > 
> > 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
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > http://lists.olug.org/mailman/listinfo/olug
> > 
> 
> 

-- 
Jon H. Larsen  - relayer -at- levania -dot- org
Operations Manager, Omaha Linux Users Group - http://www.olug.org/
AnimeSunday.org - http://www.animesunday.org/
ICQ#: 10412618 - http://www.levania.org/~relayer/
GPG/PGP Pubkey - http://www.levania.org/~relayer/relayerpubkey.txt



More information about the OLUG mailing list