You are not logged in.

#1 2011-12-01 22:45:04

rusma
Member
From: Ås, Norway
Registered: 2009-11-01
Posts: 110

How to make Mutt list messages in a descending order

Hey.

How do I make mutt list my messages with the newest message at the top, like in the web interface of Gmail? It is called descending listing starting with the newest message, I suppose.

Offline

#2 2011-12-01 22:48:34

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: How to make Mutt list messages in a descending order

Offline

#3 2011-12-02 09:14:04

rusma
Member
From: Ås, Norway
Registered: 2009-11-01
Posts: 110

Re: How to make Mutt list messages in a descending order

The man page is long and difficult to comprehend ... please, does somebody give a hint?

Offline

#4 2011-12-02 09:43:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How to make Mutt list messages in a descending order

/dev/zero has pointed you at the right man page. You are wanting to sort your mail...

man muttrc | less -p sort

# edit: you also want sort_aux

Last edited by jasonwryan (2011-12-02 09:45:58)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-12-02 15:57:39

rusma
Member
From: Ås, Norway
Registered: 2009-11-01
Posts: 110

Re: How to make Mutt list messages in a descending order

IMHO, rtfms are the worst of all answers. A better answer in this case would be to explain how mutt sorts mail and how mutt understands the sorting commands. E.g. at this point I have specified these sorting variables in .muttrc:

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

Offline

#6 2011-12-02 16:52:06

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: How to make Mutt list messages in a descending order

I have recently switched to Mutt myself, and the manual is unfortunately not a good place to start. I have pieced together a nice config mainly by googling and stealing stuff from other people's configuration files.

The setting you want is

set sort = reverse-date-received

That will show the most recent mails on top.

If you want it threaded according to the most recent e-mail in a thread, this should work:

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

Alternatively you might use

sort_aux=reverse-last-date-received

Last edited by .:B:. (2011-12-02 20:32:36)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2011-12-02 20:01:27

rusma
Member
From: Ås, Norway
Registered: 2009-11-01
Posts: 110

Re: How to make Mutt list messages in a descending order

.:B:. wrote:

I have recently switched to Mutt myself, and the manual is unfortunately not a good thing to start. I have pieced together a nice config mainly by googling and stealing stuff from other people's configuration files.

The setting you want is

set sort = reverse-date-received

That will show the most recent mails on top.

If you want it threaded according to the most recent e-mail in a thread, this should work:

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

Alternatively you might use

sort_aux=reverse-last-date-received

Hey, thanks. The first one did not work for me, but the second (alternate) did, so this would be the correct config:

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

Offline

#8 2011-12-03 03:43:38

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: How to make Mutt list messages in a descending order

rusma wrote:

IMHO, rtfms are the worst of all answers.

This is the Archlinux forum, as opposed to some other forums where people are not encouraged to think for themselves.

Offline

#9 2012-01-14 04:52:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: How to make Mutt list messages in a descending order

Moderator comment.  Truncated this thread by removing the last two posts. 

Our Policy
and this too


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB