Here be Dragons
#Introduction
The mutt
directory in my dotfiles contains the configuration of my mutt mail setup. This is heavily influenced by The Homely Mutt. You should go read that from top to bottom several times before attempting to use or mimic my mutt setup.
Unlike Git or Vim or tmux where lack of understanding us relatively harmless, screwing up mutt or offlineimap could result in permanently lost email.
PROCEED AT YOUR OWN RISK.
#Dependencies This configuration relies upon a number of tools. They are presented in the order The Homely Mutt introduces them. (You did read that, right?)
-
Offlineimap
git clone git://github.com/spaetz/offlineimap.git cd offlineimap git checkout 679c491c56c981961e18aa43b31955900491d7a3 python setup.py install
Note: sudo
may be required for the install step.
-
Mutt
$ brew install mutt --sidebar-patch
At present the brew formula for mutt does not include the sidebar patch. Follow these steps to edit the formula:
$ brew edit mutt
Scroll down to a section of commands that all start with "option", sort of like:
option "with-debug", "Build with debug option enabled"
option "with-trash-patch", "Apply trash folder patch"
option "with-s-lang", "Build against slang instead of ncurses"
option "with-ignore-thread-patch", "Apply ignore-thread patch"
option "with-pgp-verbose-mime-patch", "Apply PGP verbose mime patch"
option "with-confirm-attachment-patch", "Apply confirm attachment patch"
Add this line to the bottom of the options:
option "with-sidebar-patch", "Apply sidebar patch"
Scroll down further to the section with all the patches, e.g.
patch do
url "http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features/trash-folder"
sha1 "6c8ce66021d89a063e67975a3730215c20cf2859"
end if build.with? "trash-patch"
And add this block:
patch do
url "https://raw.github.com/nedos/mutt-sidebar-patch/7ba0d8db829fe54c4940a7471ac2ebc2283ecb15/mutt-sidebar.patch"
sha1 "1e151d4ff3ce83d635cf794acf0c781e1b748ff1"
end if build.with? "sidebar-patch"
Exit the editor and run the brew install mutt --with-sidebbar-patch
command.
-
urlview
$ brew install urlview
-
msmtp
$ brew install msmtp
-
contacts (requires full Xcode install)
$ brew install contacts
-
notmuch
$ brew install notmuch
#Setup
With the dependencies installled, symlinks can be created to the contents of the ~/.dotfiles/mutt
directory.
$ ln -s ~/.dotfiles/mutt ~/.mutt
$ ln -s ~/.dotfiles/mutt/offlineimaprc ~/.offlineimaprc
$ ln -s ~/.dotfile/mutt/msmtprc ~/.msmtprc
$ ln -s ~/.dotfiles/mutt/notmuch-config ~/.notmuch-config
$ ln -s ~/.dotfiles/mutt/urlview ~/.urlview
To download mail:
$ mkdir ~/.mail
$ offlineimap
Note, this will likely take a very long time.