ACPI administration advocacy advocacy advocacy opinion alsa amarok apache apple apt aptitude archive audio audo authentication automount avi awk backup bash BIOS boot browser business bzip cache calendar calibre cdr cdrecord censorship commandline computerscience console convert cron cut database date debian degree design desktop development disk dpkg dvd economics education emacs email europe exim faad ffmpeg file files firefox firewall flash foss freedom ftp fun fuse git gnumeric graphics grep growisofs grub gtkpod gzip hardware hardware html icedove idiocy image imagemagick images installation ip iphone ipod iptables iso itunes ivman kde kernel keyboard knoppix lame laptop latex libreoffice linux locale lockin locking longlines lsof m4a microsoft mimetypes minitab mogrify mount mp3 mp4 mplayer multimedia music mysql network nfs nfs4 nmap openbox openfiles openoffice opinion opinion orgmode partition pdf pdftk perl php podcast politics pomodoro ports postgresql print printing privacy process programming rant remote rhythmbox rss rsync rxvt scp screengrab screenshot script scripting scsi security sed server services shell siteadmin sitenews sitesoftware skype skype slackware sound sox spam spreadsheet ssh statistics subversion sudo svk swap t23 t43 tar terminal tex text thinkpad thunderbird time timer timezone ubuntu udev upgrade usb usbmount users uuid versioncontrol vfat video vnc windows wine wordpress wordprocessing X40 xwindows xwindows youtube
This is the second system I'm changing from mbox format to Maildir. The reason is that Maildir, in particular, works well with the IMAP server Courier. There are several steps involved.
I need a directory to store the mail locally. To achieve this, the best thing to use is Courier's makemaildir command, something like this:
That sets up the correct directory structure.
maildir_home: debug_print = "T: maildir_home for $local_part@$domain" driver = appendfile directory = $home/Maildir delivery_date_add envelope_to_add return_path_add maildir_format mode = 0600 mode_fail_narrower = false
The transport section of exim also needs to be fixed to look something like this:
localuser: driver = localuser transport = maildir_home
Despite this being a FAQ, there is not a lot of information about it on the internet. An essential point is that once your MTA delivers hands off the message to procmail, it relies on procmail to put it in the right directory. In other words, procmail handles all deliver options including the default, i.e. where no procmail recipes apply.
The other important point is never to assume that procmail will behave in a way that is consistent with logic. To get procmail to work with maildir format set these variables:
I've set them globally, so that all mail gets sent to the 'new' directory in the user's Maildir directory. I read somewhere that it was necessary to put a slash after the new to force procmail to recognise it is in maildir and not mbox format. This was a disaster as it made it believe that a another maildir folder had to be created under 'new'. Remember: no final slashes.
Next get your mail client to work with the new Maildir format. Here is a small howto.
The essential lines are:
set mbox_type=Maildir set folder="~/Maildir/" set mask="^\\.[^.]" set record="+.Sent" set postponed="+.Drafts" set move="no"
The first two lines are self-explanatory. The third line is required if you use your Maildir with an IMAP server. Courier, for example, creates all new folders preceded by a dot. As a mutt user you probably want to respect this hence the mask. IMAP servers also use Sent for sent mail and Drafts for drafts.
The last line is to stop mutt from asking you whether you would like everything moved to ~/mbox.
An important point is that mutt may not see your new "Maildir" directory if the environment variable Mail is not set to it. So, in .profile put:
To covert mail in /var/spool/mail to mail in ~/Maildir in Maildir format use mb2md. If you haven't set mail as above then, this should do it automatically.