procmail
[Top] [All Lists]

Re: procmail and maildir

2000-05-03 21:53:33
Chris Green <cgreen(_at_)x-1(_dot_)net> writes:
I am aiming to use procmail 3.14 to deliver mail to maildir mailboxes.

Am I right in thinking that, by default, procmail will deliver to mbox
format mailboxes, in particular it will do this if delivery is to a
non-existent mailbox. (i.e. it will create a mbox format mailbox)

It will only deliver in maildir format if it finds the destination
mailbox is a directory in maildir format?

Is there any way of telling procmail to default to maildir, i.e. if
the mailbox doesn't exist then create a maildir?

When you specify a maildir style mailbox on the action line, you place
a trailing slash on the path to the directory, ala:

        :0
        * ^Subject;.*elvis
        $HOME/Mail/elvis/

If the specified path doesn't exist, procmail will create it as a
maildir style mailbox.  If not all of the required subdirectories
exist, procmail will attempt to create them.  If it can't do that,
procmail will fail the action and continue processing the rcfile.

If you want to compile procmail such that user's mailspools are in
maildir format then you should install version 3.15pre.  Otherwise,
version 3.14 should work.


Philip Guenther

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