🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #241756

Re: [slrn] True offline mode

#241756
From: ernobe
Date: Mon, 19 Jul 2010 21:50
32 lines
2325 bytes
> when I set sorting_method to 12 ( custom ), custom_sort_by_threads to 1 ( 
> do threading ), and put bodies first ( rather bodiless first ) in 
> custom_sort_order, I'm left with header only threads and individual messages 
> first, before the threads with bodies.  What I'd like it do is apply a score 
> so that subjects beginning with Re: that appear in the first, header only 
> section are killed.  But it doesn't seem possible, because if I kill such 
> subjects it will kill them all, including the ones in threads that already 
> have articles with bodies.  In other words, I'd like to see only new subject 
> messages or threads in the header only section.
>
The following could work if all article subjects beginning with Re: had a 
parent on the server. Could someone tell me why it doesn't delete the articles 
that have a parent, please?
 
    define make_clean_threads ()
    {
        call ("header_bob");
        do
          {
             if (1 == has_parent ()) call ("delete_thread");
          }
        while (header_down (1));
    }
    () = register_hook ("article_mode_startup_hook",
			"make_clean_threads" );
			
			

-- 
"The world of existence is an emanation of the merciful attribute of God."
Abdu'l-Baha
http://www.costarricense.cr/pagina/ernobe
Technical Details
Message-ID: <i22han$4uk$1@news.eternal-september.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.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!.POSTED!not-for-mail
References: <i1fnkv$c3i$1@news.eternal-september.org>

Show Full Headers
Complete Article Headers
Message-ID: <i22han$4uk$1@news.eternal-september.org>
Subject: Re: [slrn] True offline mode
Date: Mon, 19 Jul 2010 21:50:15 +0000
From: ernobe <ernobe@yahoo.com>
References: <i1fnkv$c3i$1@news.eternal-september.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.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Baha'i Faith
Lines: 32
Injection-Date: Mon, 19 Jul 2010 21:50:15 +0000 (UTC)
Injection-Info: mx01.eternal-september.org;
 posting-host="Q91/9pHQc4495fR8Rd6wLg";
 logging-data="5076"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX18vM9rapxVnwnGUXpvETwTryVriIama6Mk="
User-Agent: slrn/pre1.0.0-18 (Linux)
Cancel-Lock: sha1:kiS6WDYQawmdTtS2RMEE2mhcHko=