From charlesreid1

See also: http://blog.trevorbramble.com/past/2011/6/5/transitioning_to_mutt_and_vim/

Installing

Prereqs

Configure

Required programs: OpenSSL is required to use Mutt with any secure connection. That's required by most mail servers, so you'll want this installed.

Optional programs: Gpg and Gpgme are both optional for sending encrypted emails. It is a bit of a pain in the arse to install from source due to 5 dependencies, but you can get a binary, or install it via Fink. Then you have to install Gpgme, which is, I guess, an interface to GPG that Mutt can use.

For instructions on installing any of this stuff, see the respective articles.

To configure mutt:

#!/bin/sh

./configure \
  --prefix=${HOME}/pkg/mutt/1.5.21 \
  \
  --with-ssl=${HOME}/pkg/openssl/std
  \
  --enable-pop   \
  --enable-imap  \
  --enable-smtp  \


To configure mutt with GPG from source, add

--enable-gpgme \
--with-gpgme-prefix=${HOME}/pkg/gpgme/std \
--disable-pgp  \

after installing Gpgme.


Adding Yourself to Mail Group

I had to add myself to the mail group, too. To do this on a mac:

sudo dseditgroup -o edit -a <username> -t user mail

You can check what groups you are in by running the "groups" command. If you are not in the mail group after running the command, try logging out and back in. When I tried this procedure on Leopard (OS X 10.5), I had to log out and back in to be part of the mail group. However, I didn't need to log out on Snow Leopard (OS X 10.6).

Using

.muttrc file

The references listed below gave me an excellent start with my .muttrc file, particularly http://crunchbanglinux.org/wiki/howto/howto_setup_mutt_with_gmail_imap

I basically just used pieces I liked from each link.

References

The Mutt Wiki Mutt Guide (great reference!)

This page has a lot of really helpful information for accessing your Gmail account in Mutt:

This page has a lot of really useful info (Gentoo wiki always does):

Guide to opening links in Mutt:

See Also