One popular option is to use getmail for retrieving and procmail for filtering the mail. Almost every MUA is able to handle Maildirs and Mutt's support is excellent.There are just a few simple things that you need to do to get Mutt to use them.Mutt focuses primarily on being a Mail User Agent (MUA), and was originally written to view mail.Later implementations (added for retrieval, sending, and filtering mail) are simplistic compared to other mail applications and, as such, users may wish to use external applications to extend Mutt's capabilities.Open your muttrc and add the following lines: This is a minimal Configuration that enables you to access your Maildir and checks for new local Mails in INBOX.
set postponed = [Gmail]/Drafts # Allow Mutt to open a new IMAP connection automatically.
set mail_check = 120 While IMAP support is built into Mutt, it does not download mail for offline use.
It is possible to use an external application such as Offline IMAP or isync to download your emails to a local folder which can then be processed by Mutt. Alternatively, it is possible to use external programs to fetch mail using POP3.
# If hcache is a folder, Mutt will create sub cache folders for each account which may speeds things up even more.
set header_cache = ~/.cache/mutt # Store messages locally to speed things up, like searching message bodies. # This will cost important disk usage according to your e-mail amount.
Whatever you set here as your folder can be accessed later in Mutt with just an equal sign (=) or a plus sign ( ). This way it will be possible to distinguish the different folders. The spoolfile is the folder where your (unfiltered) e-mail arrives. You can now use '=' or ' ' as a substitution for the full These two versions are equivalent if you want to subscribe to all folders.