Basic setup
You should already have setup your system to use Maildir.This assumes your Maildir being ~/Maildir and that it contains Drafts and Sent subfolders as commonly used by other MUAs via IMAP4.
Mutt configuration
This section describes the statements to put into your muttrc (i.e. ~/.muttrc or ~/.mutt/muttrc). .
First tell Mutt to use the Maildir format:
set mbox_type=Maildir
Next configure the locations of the common folders:
set folder=”~/Maildir”
set mask=”!^\.[^.]”
set mbox=”~/Maildir”
set record=”+.Sent”
set postponed=”+.Drafts”
set spoolfile=”~/Maildir”
Set up mailboxes by scanning for all subfolders in ~/Maildir: mailboxes echo -n "+ "; find ~/Maildir -maxdepth 1 -type d -name ".*" -printf "+'%f' "
Note that this requires find(1) from the GNU findutils,which on BSD systemsusually is installed as gfind(1).
Add macros to make the folder browser usable by always using the mailboxessetup above: macro index c “?” “open a different folder”
macro pager c “?” “open a different folder”
To additionally get straight to the folder browser when copying, moving andattaching mail, add the following macros: macro index C “?” “copy a message to a mailbox”
macro index M “?” “move a message to a mailbox”
macro compose A “?” “attach message(s) to this message”