Article View: news.software.readers
Article #222852Re: [slrn] Any way to catch up without marking crossposts as read?
From: Adam Funk
Date: Fri, 04 Jul 2008 12:55
Date: Fri, 04 Jul 2008 12:55
45 lines
2609 bytes
2609 bytes
On 2008-07-04, John E. Davis wrote:
>> When I resubscribe to a group I haven't been reading for a while and
>> it has 999 unread posts, is there any way (does anyone have a macro,
>> for example) to "catch up" the group *without* marking crossposted
>> articles as read? (I don't want to lose articles in other groups that
>> I have been reading continuously in the meantime.)
>
> How about something like:
> #v+
>
> define catchup_non_crossposted ()
> {
> if (1 != get_yes_no_cancel ("Catchup non-crossposted articles"))
> return;
>
> uncollapse_threads ();
> call ("header_bob"); % goto first header
> do
> {
> % Xref looks like: server grp1:A grp2:B ...
> variable xref = extract_article_header ("xref");
> if (length (strchop (xref, ':', 0)) < 3)
> set_header_flags (get_header_flags () | HEADER_READ);
> }
> while (header_down(1));
> collapse_threads ();
> }
>
> definekey ("catchup_non_crossposted", "\ec", "article");
>
> #v-
That's ingenous, thanks!
I don't want to sound ungrateful now, but is there a way to achieve
this in group mode rather than article mode? (I'm not an expert, but
I can see why that code doesn't work in group mode. I suspect doing
what I want there might not be possible.)
--
Nam Sibbyllam quidem Cumis ego ipse oculis meis vidi in ampulla
pendere, et cum illi pueri dicerent: beable beable beable; respondebat
illa: doidy doidy doidy. [plorkwort]
Technical Details
Message-ID:
<a6j1k5-ois.ln1@news.ducksburg.com>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<qg8pj5-qr6.ln1@news.ducksburg.com> <slrng6rdfm.ml3.jed@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <a6j1k5-ois.ln1@news.ducksburg.com> Subject: Re: [slrn] Any way to catch up without marking crossposts as read? Date: Fri, 4 Jul 2008 13:55:06 +0100 From: Adam Funk <a24061@ducksburg.com> References: <qg8pj5-qr6.ln1@news.ducksburg.com> <slrng6rdfm.ml3.jed@aluche.mit.edu> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: $CABAL Lines: 45 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net HooAxNc6P0j6gYKzxs8MwgDZLDfiaV8M81z9CTzCJkXMqh+KiO X-Orig-Path: news.ducksburg.com!news Cancel-Lock: sha1:igYmcraQR7EPADMUKqBQ9jE3ClQ= User-Agent: slrn/pre0.9.9-107/mm/ao (Ubuntu Hardy)