Mutt and Neomutt Configuration for Maildir Format
Introduction
Since the change in Maildir format, Mutt and Neomutt no longer save sent emails in the ~/.muttrc file. In this article, we will discuss how to configure Mutt and Neomutt to save sent emails in the Maildir format.
Mutt Configuration
Setting Maildir Type
To set the Maildir type in Mutt, add the following lines to your ~/.muttrc file:
set maildir = ~/Maildir
set folder = "~/Maildir"
set mask = "!^\\.[^.]"
Setting Sent Mail Folder
To set the sent mail folder in Mutt, add the following line to your ~/.muttrc file:
set mbox_type = Maildir
Neomutt Configuration
Neomutt uses a different configuration file, ~/.config/neomutt/neomutt.conf. To set the Maildir type and sent mail folder in Neomutt, add the following lines to your ~/.config/neomutt/neomutt.conf file:
maildir = ~/Maildir
folder = "~/Maildir"
mask = "!^\\.[^.]"
mbox_type = Maildir
By configuring Mutt and Neomutt to use the Maildir format, you can ensure that your sent emails are saved in the correct location. This is especially important if you use multiple email accounts and want to keep your emails organized.