Folders are simply subdirectories inside the main maildir whose names start
with a period, and which are themselves maildirs.
For example, the command
"maildirmake -f Drafts mail/Maildir" creates
mail/Maildir/.Drafts,
that has the usual tmp,
new and cur.
You MUST use the -f option, instead of
specifying mail/Maildir/.Drafts directly,
in order to correctly
initialize certain enhanced maildir features.
SHARED FOLDERS
This is another extension to the Maildir format that allows folders to be
shared between multiple clients.
| NOTE: | The Courier-IMAP folder implements two types of shared folders:
filesystem permission-based shared folders,
as well as virtual shared folders based on IMAP access control lists.
Use the maildirmake command
to implement shared folders based on
filesystem permissions.
The
maildiracl(1)
command manages access control lists, which
are used by virtual shared folders. See the Courier-IMAP server documentation for more information. |
First, you need to create a collection of
sharable folders, as a separate maildir:
Then, create individuals folders that will be accessed in shared mode:
In this example, the "Weekly" folder is created,
with read/write access to everyone.
Multiple folders can be created in the same maildir, with different access
permissions. Everyone can create a sharable maildir. The access privileges
for individual folders are set by the -s option, and are
implemented using traditional filesystem permissions.
Use the --add and
--del options to add a sharable maildir to
an existing maildir. Client software that implements this extension will now
know where to find sharable folders:
$HOME/Maildir is your main maildir.
The argument to -add
is nick=path.
nick is a nickname for this collection of
sharable folders, and path is the location of the
sharable maildir.
All folders in the sharable maildir that you have access to -- such
as "Weekly", in this case, will now be accessible.
Multiple sharable maildirs can be added, by giving each one a unique
nick.
The --del option "disconnects" the sharable maildir from
the main maildir.
GLOBAL SHARED FOLDERS
Normally -add command must be run for every maildir
which needs
to access the sharable maildir. Alternatively the file
/etc/courier/maildirshared can be created,
to specify a default set of sharable maildirs.
Each line in this file takes the following format: