NOTE: My Mutt configuration has been moved in with my main dotfiles repo. Any future updates will occur there.
This is my
Offlineimap and Msmtp
Two Gmail accounts are kept in sync with directories under
You can find the relevant configs for both of these tools in my dotfiles repo.
I don't trust Offlineimap as a daemon, so I just manually sync every 3 minutes via [f]cron.
*/3 * * * * /home/you/.mutt/bin/mailrun
mailrun gives offlineimap 60 seconds to complete before forcibly
killing that process. In my experience if it's not done in 30, it's
hung. You may want to adjust these numbers depending on the size and
number of your mailboxes.
Either way, you should run your first sync manually since it will take a while.
Mail query is a little C app I wrote which reads your existing mail for addresses and presents them in a format such that mutt can use them for tab completion. Given a small enough mailbox, it's usably fast.
It is available in its own repo.
Mutt accesses the mailboxes under the two synced folders in
folder-hooks to adjust the appropriate settings (
sendmail, etc) depending on what folder you're in.
Be sure to review all settings and
man muttrc for anything you don't