dattier(_at_)wwa(_dot_)com (David W. Tamkin) writes:
Stephen van den Berg wrote,
| LOGABSTRACT=all was never intended to be used on anything
| other than "delivering" recipes (as defined in the procmailrc man page).
| The fact that adding a "c" flag on those recipes seems to change them
| into delivering recipes [as far as logabstracts go] is actually purely
| coincidental.
| The question now is, should procmail consider the 'c' flag to change those
| recipes to be "delivering" (and therefore fix the content of LASTFOLDER)
| or should procmail simply ignore the 'c' on those recipes all together
| and not log a thing. What is what one would expect, and is it useful?
Though I'd rather have a way to get a logabstract on some non-delivering
recipes and hate to give it up, in all honesty I'd have to say that filter
and capture recipes should never be treated as delivering and that nothing
should be logged.
That is, unless Stephen is (oh no, creeping featurism) amenable to a
recipe flag that means "log this recipe if it is executed, even if it is
non-delivering or if LOGABSTRACT is off."
I'll second David here, and suggest the following semantics:
0) The 'c' should always be considered extraneous (and logged as
such) on filtering and variable capture recipes. To do
otherwise is to confuse its function.
1) No setting of LOGABSTRACT should cause a filtering or v-c
recipe to log an abstract. As David says, they should not be
treated as delivering recipes.
2) OPTIONAL: add another flag ('L'?) which would cause the
specified recipe to log an abstract, independent of the setting
of LOGABSTRACT and independent of the type of recipe (except it
should be ignored/marked extraneous on nested block recipes).
If an abstract was already going to be logged, this should not
cause a duplicate (though I don't think this should be logged
as an error).
3) LASTFOLDER should either *always* be set by filtering and v-c
recipes, or *never* set. It's currently the latter, which
seems fine, though implementing the 'L' flag in (2) may make
the latter more reasonable.
Philip Guenther