Re: shell errors

"Julian H. Stacey" <[email protected]>
Newsgroups gmane.mail.procmail
Organization http://berklix.com BSD Unix Linux Consultancy, Munich Germany
Message-ID <[email protected]>
> If the logging doesn't cast enough light, I'd comment each one out in
> turn, to rule it out. (Or half to begin with, to halve the search.)
> If none of them are the culprit, things become even more interesting.

Yes, debugging is tricky, as procmail recipes are interpreted
at run time, not compiler checked in whole in advance.

Normaly I leave this commented out
# VERBOSE=YES   # For debugging only. Grows Rapidly !
& just have 
LOGFILE=$MAILDIR/procfile.log

Then when something breaks I enable verbose & pass the breaking
mail through again, or wait till a similar error.

Sometimes using repeated binary divide, commenting out progressively
more/less to hunt down a bad .procmailrc recipe, keep passing the
failing mail through until I saw what breaks.

Recently I extended one of my Makefiles to call my brackets program
to check exit values on my .procmailrc files. Its not ideal, but
helps detects broken syntax before it fails.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with "> ".
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.