On Wed, May 03, 2000 at 11:48:55PM -0500, Philip Guenther wrote:
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.
OK, thanks! Much neater and simpler than I thought.
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.
I'm running procmail as a user, I don't have root install access here
so I don't think 3.15pre will do anything for me. The sysadmin will
upgrade the system's version of procmail (currently 3.13.1) when the
debian distributions include it. Then I'll be able to get rid of my
local copy.
--
Chris Green (cgreen(_at_)x-1(_dot_)net)
Home: chris(_at_)isbd(_dot_)demon(_dot_)co(_dot_)uk Work:
cgreen(_at_)bcs(_dot_)org(_dot_)uk
WWW: http://www.isbd.co.uk/