Re: Get thread info slrn has in article mode?

Martin Trautmann <[email protected]> Sun, 16 Feb 2014 19:25:51 +0100
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14-02-16 19:00, J.B. Nicholson-Owens wrote:
> In article mode, slrn can show the user a thread tree: a clear 
> indication of which article is an article's parent, and which
> articles are that article's children (if any). I'd like to get at
> this thread information in an S-Lang macro for slrn.
> 
> I'd like to get at this information without:
> 
> - adding articles to the thread that aren't already in the visible
>  thread tree. I don't want to reconstruct the whole thread nor do I
> want to add any articles to the thread display I'm not already
> seeing.
> 
> - requesting anything from the news server 
> (http://slrn.sourceforge.net/docs/slrn-manual-7.html#akey_get_parent_header
>  says that get_parent_header will download data from the server if
>  necessary).
> 
> - rebuilding thread information by reading References: header data
>  because slrn has apparently already done that plus constructed
> threads from articles where References: header data is missing. We
> see the fruit of this work when slrn shows the user the thread
> tree.
> 
> Is there S-Lang API for slrn to let an S-Lang macro read this
> thread data? It would be okay if this were read-only data for the
> macro.

All the thread info is derived from the References. What else do you need

* all levels up to the root, the initial posting
* just all predecessors of the current posting, but not
  the side branches
* all with the same subject
  (how about subject changes within a thread?)


> I need this information to show the relationships between articles
> in the same thread in a different way than slrn currently does this
> and I'd like to avoid rewriting code that already does this job.

Do you look for something like the current shortcuts esc-1-p and
esc-2-p? Check their sources!

- - Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTAQKvAAoJEJphT/DoDKrtqf4H/ii94iu7ZpRinqq5rXaploNh
fe1NKAY2uqCEzjIeBl+z9Js8LAosd/gZ2HDZ55GVuXXIPOh32rLvVS/VtuZ3dJk+
Av/eZpCJJTRB7l9HICSJXW+uN67GInUBINU7GwwFKbzv/Gf2iwz6O9im2B3o7fJ+
3eQLcmZeA6ZmxS4RhLrXOr4oy+98A42EIUlr+hXOrnhGhseaAryhDQdru2gTpg8U
hVvWQJ6mYq8A1GgWw17urk0FPVzs7w/Se1EkSslha5ZmE0N/aEZIzRrMQby7R5gT
vOpPdDJ9DnDr8bSEDOqCQOSGTdzMw7p8wDZMZToCPSq032/REn/iTTN/h1MM8aU=
=CKXx
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk