Earlier today I suggested the following code for Odhiambo Washington's
question:
wrong> :0B:
right> * conditions
right> file
It should, of course, be `b', not `B'. 'B' is for searching the body, `b'
is for delivering it.
I also wrote,
| To append a copy of the body to that file and deliver the original of the
| message per later recipes (or to let it go to $DEFAULT), include a `c'
| flag as well as `B'.
That last phrase should read, "as well as `b'."
And finally, the code that includes a separator should read as follows with
the same correction:
:0
* conditions
{
LOCKFILE=filename$LOCKEXT
oldVERBOSE=$VERBOSE
VERBOSE=off
oldLOGFILE=$LOGFILE
LOGFILE=filename
LOG="
- - - - - - -
" # note trailing quote on next line down
LOGFILE=$oldLOGFILE # move logging back to the real logfile
VERBOSE=$oldVERBOSE
# add `c' if appropriate, as explained above
# and moreover, it should be `b'; I got it wrong before
:0b # no local lock because regional lock does both jobs
filename
# In case there was a `c',
LOCKFILE
}
Thanks to Philip Guenther for calling my attention to the slip (though why
he didn't just post it, I can't guess).
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail