procmail
[Top] [All Lists]

Re: recipe to stop procmail processing

2004-09-02 10:59:33
On Thu, Sep 02, 2004 at 09:43:14AM -0500, David W. Tamkin wrote:
Brent Graham wrote:

OK, now for one more question. How about a recipe that copies
(not moves) the message to another folder and also stops further
processing?

[snip]

I know I can do this with 2 recipes (first using :0 c: and
then the recipe below), but is there a way to combine it into one recipe?

[. . .] we have to gather that you mean you want to save the message
in both $DEFAULT and one other folder when there's still more code in
the rcfile, but the remaining code applies only to other messages and
not to this one.

So no, there's no other way to do it.  To save a message in
$DEFAULT before the end of your recipes, you have to do it
explicitly, either with a recipe that saves to $DEFAULT or, in the
circumstances I detailed last time, by unsetting SWITCHRC or setting
SWITCHRC=/dev/null.

I don't really have any truck with what David said.  However, whenever
he writes "there's no other way," something fires off in my head and
I have to find another way.  :-)  This is partly because my credo about
computers is that there is *always* another way.

   LOCKFILE = foo.bar

   :0
   * HB ?? ? cat >> foo
   $DEFAULT

   LOCKFILE

-- 
dman

____________________________________________________________
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