Article View: news.software.readers
Article #84266Re: slrn feature request
From: Thomas Schultz
Date: Mon, 10 Sep 2001 18:53
Date: Mon, 10 Sep 2001 18:53
43 lines
2625 bytes
2625 bytes
* nanonano@nowhere.com [2001-09-04 23:58] :
[...]
> What would be nice is to have a 'start-tag' key and an 'end-tag'
> key. This way if you want to download 1200 articles and decode them
> you can just mark the first article and the last article and let slrn
> tag them for you.
You can mark an article (using ';') and return to it later (by
pressing ','). The following macro (a quick hack) makes use of this
feature. Just mark the first article, move the cursor to the last
article you want to tag and call the macro.
Notes: This macro is written for the current release (0.9.7.2); if
articles between the mark and the cursor position are already tagged,
they get un-tagged (you can change this if you like). If the starting
point (the marked article) is *below* the current cursor position, the
tagging will "wrap" around the bottom of the header list, leaving
articles between the mark and the cursor untagged.
Here you go ...
#v+
define bulktag ()
{
variable stophere = extract_article_header ("Message-Id");
call ("exchange_mark");
while (strcmp (stophere, extract_article_header ("Message-Id")))
{
variable is_not_last = header_down (1);
if (is_not_last)
() = header_up (1);
call ("tag_header");
if (0 == is_not_last)
call ("header_bob");
}
call ("tag_header");
}
#v-
--
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
-> [2001-08-20] slrn 0.9.7.2 released
-> [2001-08-11] slrn-announce mailing list created / wishlist reviewed
-> [2001-06-06] slrn 0.9.7.1 released
Technical Details
Message-ID:
<slrn9pq30g.2s3.tststs@starflower.tststs.ddns.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mailReferences:
<slrn9p0375.eo.fafa@soulbrain.nyc.rr.com> <slrn9p09e9.1go.fafa@soulbrain.nyc.rr.com> <MPG.15ff349ba2025dac989681@news.newsguy.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn9pq30g.2s3.tststs@starflower.tststs.ddns.org> Subject: Re: slrn feature request Date: Mon, 10 Sep 2001 18:53:04 +0000 From: Thomas Schultz <tststs@gmx.de> References: <slrn9p0375.eo.fafa@soulbrain.nyc.rr.com> <slrn9p09e9.1go.fafa@soulbrain.nyc.rr.com> <MPG.15ff349ba2025dac989681@news.newsguy.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. Lines: 42 NNTP-Posting-Host: 149.225.50.223 NNTP-Posting-Date: 10 Sep 2001 19:59:05 GMT X-Complaints-To: abuse@cityweb.de X-Server-Date: 10 Sep 2001 19:56:07 GMT User-Agent: slrn/0.9.7.2 (Linux)