sort by three keys?

Cameron Simpson cs at cskk.id.au
Tue Feb 21 02:04:41 UTC 2023


On 20Feb2023 09:06, David Young <dyoung at pobox.com> wrote:
>I sort my mailboxes with "sort=threads", "sort_aux=last-date-received".
>I would like to apply scores to messages and sort threads first by
>maximum message score, second by last-date-received.  Is something like
>that possible?

I'm sure I composed a reply to this. Can't find it :-(

There are only 2 sorting fields, but you can fold an age-of-message 
component into your scoring, and then sort on that.

Scale your current scoring by 10 or maybe 100. The add a value in 0..9 
or 0..99 based on the message age. That needn't be a linear scale, you 
might use some fine grained low (or high?) values for recent messages 
and a coarser scale for older messages (ag a day, a week, a month etc).

There are relative time criteria in the PATTERNS section of the manual 
which you could use here for the scoring.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Mutt-users mailing list