procmail
[Top] [All Lists]

Re: check filtered stream but deliver unfiltered

2001-12-06 10:18:51
Bart quoted me,

| On Thu, 6 Dec 2001, David W. Tamkin wrote:
| > Even if that were the right procedure, it could be written
| >
| >  :0
| >  * some condition
| >  * B ?? ? yourscript
| >  someaction
| >
| > which is quicker for procmail to read and IMO more legible for human
| > eyes as well.

and added,

| I tend to disagree that the resulting pile of question-marks is more
| legible than pulling the 'B' up to a flag, but that's entirely a matter
| of preference.

OK then:

  :0B
  * H ?? some condition
  * ? yourscript
  someaction

The point is to avoid the unnecessary nesting of braces, which just bulks up
the rcfile and makes procmail take longer to read it and do more work to
keep track of the nesting level.  I see entirely too much of things like
this:

 :0 # no conditions and no clone
 {
  actual code goes here
 }

or

 :0
 * conditions
 {
   :0 # no conditions
   someaction
 }

What you had there, Bart, was not fully as bad as those, but it was off in
their direction.



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>