procmail
[Top] [All Lists]

Re: Help with filter-flags

2011-08-05 11:19:18
Arthur Dent <misc(_dot_)lists(_at_)blueyonder(_dot_)co(_dot_)uk> squaked out on 
Fri 05-Aug-2011 02:21
              return to calling recipe <--- NEEDS TO EXIT HERE!

SWITCHRC on a line by itself will return to the calling recipe.

I don't know how to exit a procmail recipe and allow it to return to the
calling recipe. I have seen the SWITCHRC command - but I don't think
that is what I want here.

Yep, it is.

for example, in my list processing file I have the following:

:0
* LISTNAME ?? macosx
{
   LISTNAME=macosx
   SWITCHRC=$HOME/.boxcarrc
   SWITCHRC
}

Which means: 
        if the LISTNAME variable contains macosx then set the LISTNAME to 
macosx 
        load the recipes in $HOME/.boxcarrc
        exit the current file

-- 
and I lift my glass to the Awful Truth / which you can't reveal to the
Ears of Youth / except to say it isn't worth a dime


____________________________________________________________
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>