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.

Related Posts:

  • How come I don’t have Gmail IMAP yet?
  • Mutt with SSMTP
  • A day without X
  • Wow! I got Gmail!
  • Suggest a robust POP Solution for 60-80 users
  • My ISP just got less anoying…
  • Are You Clueless?
  • My MSU Email Debacle
  • Interesting Factoid about Email
  • POP+SMTP Setup is on it’s way out

  • 5 Responses to “Using IMAP with Mutt”

    1. Gravatar Terminally Incoherent » Blog Archive » A day without X UNITED STATES Says: Reply to this comment

      […] I previously covered Mutt several times, showing you how to set it up for IMAP and how to send out emails without full blown sendmail or exim setup just using basic SSMTP. There is also Pine which is a damn fine mail client too - if you can deal with editing your messages in pico. […]

      Posted using WordPress WordPress 2.0.5
    2. Gravatar mucknert GERMANY Says: Reply to this comment

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

      Posted using Unbranded Firefox 2.0.0.3 on Linux Linux
    3. Gravatar Yannick UNITED STATES Says: Reply to this comment

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

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.4 on Linux Linux
    4. Gravatar rolnxyz UNITED STATES Says: Reply to this comment

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

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.6 on Mac OS Mac OS X
    5. Gravatar Luke Maciak UNITED STATES Says: Reply to this comment

      Glad I could help. )

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.6 on Windows Windows XP

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <pre lang=""> <em> <i> <strike> <strong>

    [Quote selected]