procmail
[Top] [All Lists]

Re: Introduction to Maildir (was Re: mutt and mh/procmail)

2000-03-08 14:14:29
"David W. Tamkin" <dattier(_at_)mcs(_dot_)net> writes:
OK, somebody has to say this:

Philip's latest revision of the procmailrc code in question is as follows:

|      :0
|      * conditions
|      {
|          :0 r
|          foldername/tmp/$XXX
| 
|          :0 air
|          |mv foldername/tmp/$XXX foldername/new/$XXX
|      }

Shouldn't the first recipe inside the braces have a `c' flag?  And shouldn't
there be some provision for fall-through?

<bonk>  Yes, of course.  I didn't see what I was looking at.


In fact, if we are going to do nothing about fall-through, do we need braces
at all?

Yes, though some people find brace version easier to handle conceptually
as the actions are encapsulated together instead of being spread.


:0rc
* conditions
foldername/tmp/$XXX
 :0air
 |mv foldername/tmp/$XXX foldername/new/$XXX
 #   ^^^^^^^^^^^^^^^^^^^
 # would $LASTFOLDER work there?

Yes, though it should make no difference in performance.


Philip Guenther

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