<<< Date Index >>>     <<< Thread Index >>>

Re: Weird sorting possibilites?



On Monday, 05 January 2009 at 14:15, Kyle Wheeler wrote:
> On Monday, January  5 at 11:34 AM, quoth Robin Lee Powell:
> > Is there any way to sort by "from address unless it's mine, in which 
> > case use the to address"?
> 
> Well, you asked a difficult question, so I'll break it into two parts:
> 
> Part 1: Is there an *easy* way to sort by "from address unless it's 
>          mine, in which case use the to address"?
> 
> No, unfortunately, there's not.
> 
> Part 2: Is there ANY way to sort that way?
> 
> I think there is, but it'd require a *LOT* of work. One of the sort 
> methods is "score" where you sort your messages by a score that you 
> have control over. I *think* it would be possible to design a 
> sufficiently clever set of scoring rules that would allow you to 
> create the sort order that you like. But like I said, that would 
> require a TON of work.
> 
> It would be much easier to ask the developers to make a from-or-to 
> sort order (to match the %F field of the index_format). This could be 
> painful for the IMAP driver, though, since the sorting cannot be done 
> on the server side.

We don't use server-side search yet anyway (which is one of the
reasons mutt loads the whole mailbox on open). When (if?) we get
server-side search and partial mailbox loading, we'll just have to
have a fallback client-side mode for sort modes that the server
doesn't support. That's what we do for search right now.