Mutt for GMail IMAP on Mac OS X

By vijay on January 27, 2010 — 1 min read

Mutt is an advanced email client for *nix systems that runs in a terminal . Here’s how you can use mutt on Mac OS X [Snow] Leopard  and configure for GMail account with IMAP.

All mail clients suck. [mutt] just sucks less.

First download and install MacPorts. Open a terminal window and install Mutt 1.5.20 using the following command.

Now open up your favorite editor to create ~/.muttrc – You can use the following muttrc as a starter or you can use muttrcbuilder to create the file and copy it to your ~/.muttrc file.

Make sure that you create the ~/.mutt/cache and ~/.mutt/certificates before you start mutt.

Here’s how it is going to look like:

Some useful commands to get started:

? - Help
b - Toggle Side Bar
m- New Email
q- Close current 'pane' or Quit
c - Change to a new folder
y - Send (After composing the message)

Posted in: Programming

Leave a comment

Leave a Reply

  • Hi Vijay – A quick thank you for this excellent article which helped me enormously in setting up mutt on OSX.

    Perhaps you can give me a bit of advice? I have more than one IMAP account I want to get mail from – do I have to go down the fetchmail route or do you think I can sort it through the muttrc file and use hooks?

    Cheers

    Andrew

  • Hi Vijay – A quick thank you for this excellent article which helped me enormously in setting up mutt on OSX.

    Perhaps you can give me a bit of advice? I have more than one IMAP account I want to get mail from – do I have to go down the fetchmail route or do you think I can sort it through the muttrc file and use hooks?

    Cheers

    Andrew

  • Hi Vijay, I have couple of questions regards the settings.
    1) where to save the Muttrc file ? (Is it in root directory cd /) ??
    2) I am confused with this line ” Make sure that you create the ~/.mutt/cache and ~/.mutt/certificates before you start mutt.” Does that mean I have to create a folder name “Cache and Certificates” in my root directory ?

    • Hi Tri,

      1. You need to put it in your home directory –
      2. Yes, you need to create the directories ~/.mutt/cache and ~/.mutt/certificates – ‘~’ means home directory.
      e.g. my home directory is /Users/vijaykiran, so I have /Users/vijaykiran/.mutt/cache and /Users/vijaykiran/.mutt/certificates.