Sorting in Mutt

A couple of days ago I discovered the following mutt config option.

set sort = threads
set sort_aux = last-date-received

This means you get the usual threading but that a thread is sorted by the date the last message in the thread was received. This keeps a thread which receives new mail at the bottom of your mailbox rather than up at the top.

Another idea I found useful is to sort my spam mailbox by subject. Since a lot of SPAM has exactly the same subject it makes it really easily to quickly scan the mailbox for HAM.

You can easily do this with the following additions to your muttrc

folder-hook . set sort=threads
folder-hook spam set sort=subject

You need to set the default as mutt will change the sort order when you change to the spam folder but won’t change it back when you jump out of it.

6 Comments

  1. Posted April 16, 2008 at 7:06 am | Permalink

    Noice. Comes in most useful at $work where I have all ex-employees aliased to my inbox! ;-)

  2. Not Important
    Posted June 12, 2008 at 9:29 am | Permalink

    Amazing how people still use text-based email clients. What wrong, in your opinion, with GUI-based clients such as Thunderbird or Sylpheed?

  3. Posted June 12, 2008 at 9:35 am | Permalink

    @Not Important

    Nothing wrong with GUI clients. I just find that I’m much more productive in a text based client and IMHO mutt is a lot more powerfull then say Thunderbird. Also using a mouse just slows me down.

  4. Posted September 8, 2008 at 2:11 am | Permalink

    Thanks! I can use threads again!

  5. Mark
    Posted September 24, 2008 at 9:10 am | Permalink

    @Not Important

    Sounds like a troll post.

    However mutt is extremely useful when managing and debugging accounts on mail servers (as I need to). A GUI only slows this process now.

  6. ikaruga
    Posted October 17, 2008 at 12:00 am | Permalink

    Thanks for the quick tip — as usual I was finding the mutt manual easy to read :-)

    @Not important – I personally use mutt because I am running an ancient laptop: 800 mhz w/ 256 mb. With firefox or another browser running youtube or any other flash site, I pretty much can’t run another graphical program. I found mutt to be a lifesaver. I can quickly check my email without bringing my system down.

    @Mark – you are a system admin. @Not important’s question is really, “Why does the AVERAGE person still use mutt?” In which case, I would agree with him: (1) mutt has a huge learning curve. For sending an email to gramma, I don’t think that learning curve is worth it. (2) if you are running a regular computer (say that can handle ubuntu or vista), it can also handle Thunderbird or Sylpheed.

Post a Comment

Your email is never shared. Required fields are marked *

*
*