procmail
[Top] [All Lists]

Re: Error while writing to <mbox file>

2005-10-04 06:29:46
On Tue, Oct 04, 2005 at 03:22:12PM +0200, Dallman Ross wrote:
On Tue, Oct 04, 2005 at 08:58:39AM -0600, mindfuq(_at_)verizon(_dot_)net
wrote:

If it's required, why is no error generated?  Is it valid
procmail code to have an unclosed brace?

Not "valid"; just that the software was coded to be
pliant in that regard.  The point is to increase robustness.
It's easy to forget a closing brace.  I ran with one
missing for the last six weeks, in fact, and only noticed
it when I was looking in my logs to explain something to
someone else on a local newsgroup.  If procmail crashed
each time, we'd have a lot of crashed procmail setups.

Btw, you're wrong about no error being generated.  I meant to
say that up-front but forgot.

   3:25pm [~/Mail] 607[0]> cat brace.rc 

   :0
   { FOO = bar


   3:25pm [~/Mail] 608[0]> procmail -m DEFAULT=/dev/null VERBOSE=y brace.rc < 
/dev/null
  procmail: [18736] Tue Oct  4 15:25:37 2005
  procmail: Assigning "MAILDIR=."
  procmail: Rcfile: "brace.rc"
  procmail: Assigning "FOO=bar"
  procmail: Missing closing brace
  procmail: Assigning "LASTFOLDER=/dev/null"
  procmail: Opening "/dev/null"
    Folder: /dev/null 


-- 
dman

____________________________________________________________
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