Article View: news.software.readers
Article #69496Re: [slrn] thread_size() & single article
From: cedric
Date: Thu, 21 Dec 2000 06:18
Date: Thu, 21 Dec 2000 06:18
85 lines
4467 bytes
4467 bytes
>> Message-ID: <0ruq19.1q3.ln@127.0.0.1> > >Your posting agent appears to be misconfigured. You should have a host name >or at least a unique IP to the right of the at sign. 127.0.0.1 is so common >the chances of your posting agent to be able to generate a unique message-ID >are greatly reduced. > I have configured slrn like this set realname cedric set username cedricduval set hostname free.fr But I have let 'generate_message_id' unset... And then the default behaviour is for slrn to create its own Message-ID. As I use leafnode as a local news server, maybe should I set it to 0? (that's what I have done for this post, hope this will work...) >> I would like to be able to know if the current selected message in slrn >> is a single article (eg with no response). > >I don't think I understand what you're asking for--you want to know if an >article has no child articles? Do you want to know if an article has no >children article(s) and no parent article? > I've configured the navigation under slrn like I've done for mutt: entirely with the arrows (like in tin): so in a group, I've 3 types of display: 1) one with only a list of threads (collapsed) 2) one with the thread consulted uncollapsed 3) one like the latter + the article shown But when I'm on a single article (visual: no child nor parent displayed, but they can exist anyway) I go directly from 1) to 3). My problem is I don't manage in this situation to collapse all other thread automatically like it is done when I consult a thread which has children. >Are you considering only visual threads (that is, considering only what that >user has in the article mode header list) or logical threads (considering >all articles that are known to exist in that thread whether read or unread, >expired on the server or not)? > I think I'm refering to visual threads... >> Unfortunately, the slang thread_size() function applies both to a thread >> and a subthread. Then testing if thread_size() == 1 cannot help, for it >> may indicate a single article or the last article of a (sub)thread. > >thread_size() refers to visual threading (not logical threading) and returns >1 under the following conditions: > > * sorting_method is even (0, 2, 4, ...). This means threads of articles > are displayed uncollapsed. Visual threading is not there, so every > article is a visual thread unto itself. > > * sorting_method is odd and the cursor is at an uncollapsed article that > has no children. > >In any other situation, thread_size() in article mode returns something >greater than 1. I'm using an odd sorting number (7) to sort by threads. And that's my problem: I can't distinguish an article that has no children from one that has no children nor parents. > >If I understand you correctly, the second criteria would seem to answer your >question so long as you are using a threaded sorting method. In an >unthreaded sorting method you're left parsing headers to discover what >article a thread is in. > >But maybe you're asking for something completely different. No, it was the right question. I should have been more precise... But I've seen on this newsgroup solutions to navigate with the arrows the same way I'm trying to do it. Maybe should I take a look at them instead of reinventing the wheel :-) Thank, C๏ฟฝdric.
Technical Details
Message-ID:
<n47s19.4d4.ln@127.0.0.1>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!oleane.net!oleane!proxad.net!feeder2.proxad.net!nnrp3.proxad.net.POSTED!cedricduvalReferences:
<0ruq19.1q3.ln@127.0.0.1> <slrn9430e5.8v.jbn@next.forestfield.org>Show Full Headers
Complete Article Headers
Message-ID: <n47s19.4d4.ln@127.0.0.1> Subject: Re: [slrn] thread_size() & single article Date: Thu, 21 Dec 2000 06:18:01 GMT From: cedricduval@free.fr (cedric) References: <0ruq19.1q3.ln@127.0.0.1> <slrn9430e5.8v.jbn@next.forestfield.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!oleane.net!oleane!proxad.net!feeder2.proxad.net!nnrp3.proxad.net.POSTED!cedricduval Newsgroups: news.software.readers Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.6.2 (Linux) Lines: 84 NNTP-Posting-Host: 213.228.50.224 X-Complaints-To: abuse@proxad.net X-Trace: nnrp3.proxad.net 977379481 213.228.50.224 (Thu, 21 Dec 2000 07:18:01 CET) NNTP-Posting-Date: Thu, 21 Dec 2000 07:18:01 CET Organization: Guest of ProXad - France