procmail
[Top] [All Lists]

Re: procmail bug report

1997-04-06 18:22:00
At 04:23 PM 4/6/97 -0500, David W. Tamkin wrote:
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.

I presume that assigning something to LOG should still work though?

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 thought the correct term was "feeping creaturism"  :-)

Might be better (in my thinking) to use variables to control this.
        LOGALWAYS='yes'
        ALWAYSUPDATELASTFOLDER='on'
etc.  Ignore those names (and concepts) of course  :-)  I spent no time
thinking how they fit in with the general syntax.

BTW, if any feeping creaturism is going to be suggested, what I'd *really*
like to do is control what goes into the log and how it gets formatted.
Maybe a LOGFORMAT variable?  For a model, programs such as trn and the
under-development mailer mutt, let you specify what you want to display,
how many bytes of it, its format, etc. when you have lots of information and
you want to squeeze some of it into into a small viewing space via
printf-like format strings where the letters after "%" say what is to be
displayed.  In other words, instead of:
        From username(_at_)somewhere(_dot_)net  Sun Apr  6 19:46:11 1997
         Subject: Re: magic cookie
          Folder: /home/stanr/bin/magic_cookie_processor.sh                1236
(with that byte count way over on the right -- maybe it'll wrap in this
mailer; I'm not sure from where I'm writing!) I might prefer:
        From username(_at_)somewhere(_dot_)net  Sun Apr  6 19:46:11 1997  1236 
bytes
         Subject: Re: magic cookie
(I already know what the folder is from the subject),
and, when I've detected a mailing list is the sender, would prefer
to replace:
        From listname-server(_at_)listname-servers(_dot_)addr
with:
        From: [listname] actual_poster(_at_)actual_posters(_dot_)addr
(you get the idea--cutting and pasting from headers to customize the logfile).

Of course, if VERBOSE is set, then changes to LOGFORMAT would be logged as well,
and unsetting LOGFORMAT would reset the default.

Oh, never mind.  Back to reality.  :-)

Cheers,
Stan

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