Article View: news.software.readers
Article #80679Re: slrn: bulding news archive
From: J.B. Nicholson-Owens
Date: Fri, 22 Jun 2001 10:22
Date: Fri, 22 Jun 2001 10:22
58 lines
3024 bytes
3024 bytes
Volker Duetsch wrote:
> is there a possibility to mark all messages (with #) in an newsgroup
> by pressing a single key, in order to extract the news with o to a file?
Yes, quite easily with a macro.
Since you're saving articles wholesale, I'm guessing you don't care if the
macro preserves the thread display. If you do care it's pretty easy to
change the code to not disturb the thread display. I'll leave that to you.
One way to do it is:
implements ("my");
define numerically_tag_all_headers ()
{
if (is_group_mode ())
error (_function_name () + " doesn\'t work in group mode!");
variable
starting_article = extract_article_header ("Message-ID"),
starting_sorting_method = get_variable_value ("sorting_method"),
previous_message_id = "";
set_integer_variable ("sorting_method", 2); % sort by subject
sort_by_sorting_method ();
call ("header_bob");
forever
{
previous_message_id = extract_article_header ("Message-ID");
call ("tag_header");
if (extract_article_header ("Message-ID") == previous_message_id)
break;
}
set_integer_variable ("sorting_method", starting_sorting_method);
sort_by_sorting_method ();
() = locate_header_by_msgid (starting_article, 0);
}
definekey ("my->numerically_tag_all_headers", ")", "article");
If you use the code above, the single key you would use to initiate
numerically tagging all the headers in the current group is ")" (close
parenthesis).
> using slrn 0.9.5.7 on win nt, w2000, linux (mandrake 8.0 and suse 7.0)
You should upgrade your slrn. There are some valuable fixes and features in
the most recent slrn you'll want to take advantage of (see
http://slrn.sourceforge.net/ for details). You should also check to make
sure your S-Lang is reasonably current.
> The usage of slrnpull and a newsserver (which both would do the job)
> is not possible.
I don't understand how slrn can work for you but slrnpull or concatenating
the spool (if you're reading from a spool) would not.
Happy newsreading.
Technical Details
Message-ID:
<slrn9j66vr.dft.jbn@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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mailReferences:
<slrn9j60gd.8k.Vd@slnu0b.nbg.cabd.alcatel.de>Show Full Headers
Complete Article Headers
Message-ID: <slrn9j66vr.dft.jbn@forestfield.org> Subject: Re: slrn: bulding news archive Date: Fri, 22 Jun 2001 10:22:06 +0000 From: jbn@forestfield.org (J.B. Nicholson-Owens) References: <slrn9j60gd.8k.Vd@slnu0b.nbg.cabd.alcatel.de> 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!130.133.1.3!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail Newsgroups: news.software.readers Organization: Forest Field OmniMedia Lines: 57 NNTP-Posting-Host: forestfield.org (208.216.67.173) X-Trace: fu-berlin.de 993205326 11697316 208.216.67.173 (16 [35848]) User-Agent: slrn/0.9.7.1 (Unix)