procmail
[Top] [All Lists]

Re: procmail delivering to Qmail Maildir format

1998-09-16 10:05:50
1998-09-15-19:27:33 Josh Rotenberg:
here is procmail with a patch to deliver to Maildirs. works great.

      http://www.qcc.sk.ca/~bguenter/distrib/procmail-maildir/

the only thing you need to change in your recipe is to put  a slash after the
folder to deliver to, i.e.

:0:
* ^TOfoo(_at_)bar(_dot_)com
stuff/

Also, make _sure_ you pre-create the Maildirs; the procmail-maildir patch
doesn't create ones that don't already exist. So you need to e.g.

        (umask 077;mkdir -p stuff/{tmp,new,cur})

actually, im not sure you need the last : for locking or not ...

Not only do you not need it, you don't want it. Locking is redundant with
Maildirs, just slows things down. What's more, this means you don't want to
use DEFAULT=$HOME/Maildir/ for your main inbox; instead, you just want to end
your .procmailrc with

        :0
        $HOME/Maildir/

Otherwise procmail will do all kinds of rabid locking on it anyway. This is
also unfortunate for using procmail w/ /etc/procmailrc to do system-wide
delivery to ~/Maildir/.

-Bennett

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