procmail
[Top] [All Lists]

Re: EOF and future recipes

2010-06-07 09:30:56
On Mon, Jun 7, 2010 at 2:12 AM, Hylton Conacher (ZR1HPC)
<hylton(_at_)conacher(_dot_)co(_dot_)za> wrote:

I receive a LARGE number of emails(Approx 1500 per month)

Heh.  I sometimes get that many in a *day*.

I would therefore like to having a working procmailrc file that I can
periodically add to.

Unfortunately using the 'HOST=' command on a separate line would stop
Procmail from continuing to use the valid recipes that are OK before the
HOST cmd?

That wouldn't make a lot of sense.  Assignments as well as recipes
have to happen in the order they appear, or things like turning
VERBOSE logging on and off would not work.

Procmail does not load recipe files in the way that (say) perl loads
programs, i.e., the entire file is not parsed and compiled and then
executed.  Rather the files are pretty much executed sequentially as
they are parsed.

To answer the original question, I find that a more obvious way to
signal EOF is with SWITCHRC, because that makes it clear that you're
finishing (switching away from) this file, whereas HOST Is intended to
indicate that the recipes that follow are only meant to execute on a
particular machine (it just happens that asserting there is no
suitable machine causes processing to stop).
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

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