procmail
[Top] [All Lists]

Re: procmail documentation problem

1998-08-14 06:31:11
1998-08-13-13:58:18 Volker Kuhlmann:
$HOME/.procmailrc (abridged):
DEFAULT=$MAILDIR/inbox                        #completely optional
[...]
:0:
$DEFAULT

Delivers to $MAILDIR/inbox. Commenting out the last recipe, causing a
fall off the end delivers to the system mailbox.

I ran into a problem like this, but in my case it was even odder, only
messages that hit a particular recipe were suffering this problem.

Seemed to me like my Mailtool->emil->MIME recipe, which required procmail to
shove the message out through a filter, read the result back in, and resume
processing, had the side effect of resetting $DEFAULT for that message.

So I moved the setting of $DEFAULT down below that recipe.

Then I looked really closely at a log and discovered that procmail was locking
my ~/Maildir, rassling with ~/Maildir/.lock. So I just dropped all mention of
$DEFAULT, and instead put the default target at the end of my .procmailrc:

        :0
        $HOME/Maildir/

and that fixed everything.

-Bennett