• Skip to primary navigation
  • Skip to main content

Inodes

Fractional CTO Consulting

  • Home
  • About Us
  • Contact Us
  • Block Examples
  • Landing Page
  • Pricing Page
  • Show Search
Hide Search

Sorting in Mutt

John Ferlito · 14 April 2008 · 6 Comments

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

Bash
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

Bash
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.

FOSS email, mutt, sort, spam, threads

Reader Interactions

Comments

  1. Marty says

    16 April 2008 at 7:06 am

    Noice. Comes in most useful at $work where I have all ex-employees aliased to my inbox! ๐Ÿ˜‰

    Reply
  2. Not Important says

    12 June 2008 at 9:29 am

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

    Reply
  3. johnf says

    12 June 2008 at 9:35 am

    @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.

    Reply
  4. b225ccc says

    8 September 2008 at 2:11 am

    Thanks! I can use threads again!

    Reply
  5. Mark says

    24 September 2008 at 9:10 am

    @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.

    Reply
  6. ikaruga says

    17 October 2008 at 12:00 am

    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.

    Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Hit the ground running with a minimalist look. Learn More

Copyright © 2025 ยท Inodes Pty Ltd ยท Log in

  • Privacy Policy