Regards, John John Magolske writes: > > For a mailing list with no Message-ID References or In-Reply-To headers, > I gather messages with the same subject line together: > > (setq gnus-summary-thread-gathering-function > 'gnus-gather-threads-by-subject) > > And I'd like to have threads sorted so that the most recent individual > message or thread with the most recent message is ordered towards the > bottom. Here's a simplified representation of actual messages in the > group in question (nnimap+imap-mail btw) showing the closest I can get. > All date/time values are from the "Received:" header and in UTC : > > A (2 Feb 13:49) > └─► A (4 Feb 20:05) > B (2 Feb 18:09) > C (5 Feb 01:19) > > This is not the order of message threads I'm looking for, as message "B" > is positioned more recent than thread "A", even though the most recent > message in thread "A" is more recent than message "B". What I'd like to > have is this: > > B (2 Feb 18:09) > A (2 Feb 13:49) > └─► A 4 Feb 20:05) > C (5 Feb 01:19) > > But no combination of values for gnus-thread-sort-functions, > gnus-sort-gathered-threads-function, gnus-subthread-sort-functions, etc. > will make this happen. I can get this thread sorting order in groups > that have the appropriate headers to allow gathering threads by > reference with: > > (setq gnus-summary-thread-gathering-function > 'gnus-gather-threads-by-references) > > ...but not when gathering threads by subject. My current settings are: > > (setq gnus-show-threads t) > (setq gnus-fetch-old-headers t) > (setq gnus-thread-ignore-subject t) > (setq-default gnus-summary-make-false-root 'adopt) > (setq-default gnus-summary-make-false-root-always nil) > (setq gnus-sort-gathered-threads-function 'gnus-thread-sort-by-date) > (setq gnus-summary-gather-subject-limit 20) > (setq gnus-summary-thread-gathering-function > 'gnus-gather-threads-by-subject) > (setq gnus-thread-sort-functions > '((not gnus-thread-sort-by-most-recent-number) > (not gnus-thread-sort-by-most-recent-date))) > (setq gnus-subthread-sort-functions > '(gnus-thread-sort-by-number > (gnus-thread-sort-by-most-recent-date))) > (setq gnus-article-sort-functions > '((not gnus-article-sort-by-most-recent-date))) > > By changing gnus-thread-sort-functions to this: > > (setq gnus-thread-sort-functions) > '(gnus-thread-sort-by-most-recent-number) > gnus-thread-sort-by-most-recent-date))) > > I can order threads how I'd like, but most recent messages & threads > with most recent message will be sorted towards the top like so: > > C (5 Feb 01:19) > A (2 Feb 13:49) > └─► A (4 Feb 20:05) > B (2 Feb 18:09) > > Here thread "A" is ahead of message "B" as the most recent message in > thread "A" is newer than "B". I'd like to have that sorting order, but > towards the bottom, and cannot figure out how to accomplish this. It > seems sorting is being done by the root/oldest message of threads rather > than the most recent message, which leads to the problem of new messages > sometimes being missed as they get pushed back above long threads. The > only solution I can come up with is to sort unthreaded by date towards > the bottom: > > (setq gnus-show-threads nil) > (gnus-summary-sort-by-most-recent-date) > > which displays like so: > > A (2 Feb 13:49) > B (2 Feb 18:09) > A (4 Feb 20:05) > C (5 Feb 01:19) > > But I'd rather have messages gathered by subject. > -- John Magolske http://b79.net/contact