Using IMAP with Mutt

I find that most GUI based clients tend to have issues with IMAP. Even the usually lightning fast kmail tends to have sluggish response times when dealing with remote mail folders. Same goes for Thunderbird and host of other mail clients that I tried. On the other hand Mutt performs awesome, and gives me exactly what I want: a lean IMAP client for a low traffic account.

How do you set up Mutt to work with imap? It is actually amazingly simple. You just need to add two lines to your .muttrc:

set folder="imaps://username@example.com"
set spoolfile="imaps://username@example.com/INBOX"

If you don’t feel like typing in your password every time you can also put it there:

set imap_pass="mypassword"

Also, my favorite line which disables that annoying Mutt prompt that asks if you want to move the read mail messages:

set mbox="!"

Maybe this will help someone who is looking for a good IMAP client. Mutt is really awesome in that area. Fast simple, and small. There even exists a working port for windows, but you are probably better off using the cygwin based version instead.

[tags]mail, email, mutt, imap, client[/tags]

This entry was posted in sysadmin notes. Bookmark the permalink.



7 Responses to Using IMAP with Mutt

  1. Pingback: Terminally Incoherent » Blog Archive » A day without X UNITED STATES WordPress

  2. mucknert GERMANY Mozilla Firefox Linux says:

    A far better, reliable and robust approach would be to use “OfflineIMAP” instead of the builtin IMAP-functionality of mutt.

    Reply  |  Quote
  3. Yannick UNITED STATES Mozilla Firefox Linux says:

    Thanks for the tip. I had to change “imaps” to “imap” for it to work though.

    Reply  |  Quote
  4. rolnxyz UNITED STATES Mozilla Firefox Mac OS says:

    Thanks
    I was looking for the “set mbox=”!”” option

    Reply  |  Quote
  5. Luke Maciak UNITED STATES Mozilla Firefox Windows says:

    Glad I could help. :)

    Reply  |  Quote
  6. k00pa FINLAND Mozilla Firefox Windows says:

    Thanks! This is awesome guide. I have used this many many times to configure mutt. :)

    Actually this was the first post I saw on this blog :P

    Reply  |  Quote
  7. abdros UNITED STATES Mozilla Firefox Fedora Linux says:

    @ k00pa:
    Awesome! I had to change imaps to imap for GroupWise

    Reply  |  Quote

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>