On Sun, 28 Oct 2012, Jan Kundr?t wrote:
On Sunday, 28 October 2012 07:06:54 CEST, wrote:
I seem to be unable to select the threaded sort mode, every
time I do so the mail ends up unsorted
Hi David,
which of the following do you mean:
a) Cannot combine searching and threading (because that is a bug [1] which I
should really fix -- just got no time for it yet),
b) Threading doesn't work at all -- that would be a new bug,
threading doesn't work at all.
I go to view -> sorting and try to select 'sort by thread' (the second
from the top) and then when I go back into the menu it show 'no sorting'
David Lang
c) Cannot sort the threads by some useful criteria like "newest messages".
If you're hitting c), that's a problem -- by default, Trojita asks for
THREAD=REFS which is unfortunately still in an RFC draft, and so far only
Dovecot has implemented support for that. Cyrus doesn't support it, so
Trojita defers to THREAD=REFERENCES which sorts threads according to the
delivery time of the thread root -- and I agree that it's a rather useless
metric.
Fixing c) would not be trivial, but should be doable. It's just that it's not
easy to define what the sort order should be -- I can definitely make it
behave like THREAD=REFS by default, but if the user selects e.g. sort by
sender, do we want to take just the thread roots into account, or do
something like max(subthread), similar to sorting by date? That's also the
reason why I implemented threading by disabling sorts unconditionally. I
should reflect that in the GUI in a clearer way.
Anyway, fixing THREAD=REFERENCES to behave as THREAD=REFS is a feature worth
implementing, especially given that Cyrus doesn't ship that yet.
With kind regards,
Jan
[1] https://projects.flaska.net/issues/560