Re: Ordering of "threaded by subject" messages

Urs Janßen <[email protected]> Tue, 27 Oct 2009 01:29:46 +0100
Newsgroups gmane.network.tin.devel,gmane.network.tin.user
Organization tin.org
Message-ID <[email protected]>
In <20091019101809.GG15705@chris>, Chris G wrote:
> What I want is to be able to set the order in which the messages
> within the thread are displayed when there are no References:.  I.e. 
> when I hit 'l' to expand the thread or when I TAB through messages in
> the thread I want them to be displayed in [ascending] date order.  As
> it is at present they appear to be displayed in an entirely random
> order.

I can reproduce the behaviour, but only if there are articles in the
thread which do have References pointing to articles which are not
available (i.e. which have expired, or which are strored in other
groups (i.e. after x-pots and f'up). if there are no such arts I
can't reporduce the behaviour.

the problem with the expired arts can be solved by removing

    if (sort_ascend && (ptr->article == ART_UNAVAILABLE)) {
        /* Add to start */
        ptr->sibling = ptr->parent->child;
        ptr->parent->child = ptr;
    } else 

from refs.c:add_to_parent() or limit it to sort_ascend &&
!sort_article_type == SORT_ARTICLES_BY_DATE_ASCEND by removing that
case from src/refs.c:build_references() (thanks to Dennis for digging
that out).

I don't know if the current or the changed behaviour is the desired
one, both make sense to me.

urs
-- 
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
 so rarely."