procmail
[Top] [All Lists]

Re: Running user procmailrc

2004-03-22 20:40:59
On Mon, Mar 22, 2004 at 08:55:28PM -0600, Alex S Moore wrote:
If code in the global procmailrc file delivers the mail, in this case to
$DEFAULT, is there any way to get the user's .procmailrc file to run
also.  I need to run the user's procmailrc file for additional
processing.

From the procmailrc manpage:

    If a delivering recipe is found to match, procmail considers the
    mail (you guessed it) delivered and will cease processing the
    rcfile after having successfully executed the action line of the
    recipe.

So the answer is "no".

That said, you can do all kinds of interesting things, like put a 'c'
flag on the delivering $DEFAULT recipe. This will cause a copy of the
message to continue on (but may mean duplicate messages will be
delivered), but this is usually not what you want.

Normally, you'd just remove the recipe that delivers to $DEFAULT and
let procmail continue on its merry way, into the .procmailrc files. If
not .procmailrc file is found, it will deliver to default anyway.

Scott
-- 
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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