Article View: news.software.readers
Article #47206Re: fetching expired articles with slrn
From: John E. Davis
Date: Wed, 10 Mar 1999 00:00
Date: Wed, 10 Mar 1999 00:00
57 lines
2835 bytes
2835 bytes
On 10 Mar 99 00:43:15 GMT, Peppe <c928400@student.dtu.dk>
wrote:
>Anyway, being used to direct global substitution, the looping way of
>doing it in slang caused the confusion:
See below for another solution.
>Btw, I noticed that
>
> setkey article dejanews_mid "M"
>
>will bind the function to both "M" and "m" if "m" is not bound
>already.
It is a convenient feature. That is about all I can say about it.
Here is some code that will search via altavista. It performs a
similar task to what you are trying to achieve:
define altavista_search ()
{
variable browser = "lynx";
variable url = "http://www.altavista.digital.com/";
variable cgi = "cgi-bin/query?pg=q&what=news&fmt=.&q=";
variable str, new_str, len, ch, chlo, i;
variable cmd;
str = "+newsgroups:" + current_newsgroup () + str + " +"
str = read_mini ("AltaVista Search", "", str);
len = strlen (str);
!if (len) return;
new_str = "";
for (i = 0; i < len; i++)
{
ch = str [i];
chlo = ch | 0x20;
if ((chlo > 'z') or (chlo < 'a'))
ch = sprintf ("%%%02X", ch);
else
ch = char (ch);
new_str = strcat (new_str, ch);
}
cmd = sprintf ("%s '%s%s%s'", browser, url, cgi, new_str);
() = system (cmd);
}
Technical Details
Message-ID:
<slrn7edje5.1tk.davis@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.mbox.zip!not-for-mailReferences:
<Pine.LNX.4.04.9902281839210.5878-100000@paule.ncpa.olemiss.edu> <36d9ff6d.641177409@nntp3.site1.csi.com> <slrn7dktrf.6tn.guckes@rudin.math.fu-berlin.de> <36dacea6.23183718@news.washburn.edu> <slrn7dlrof.6tn.guckes@rudin.math.fu-berlin.de> <Pine.WNT.4.10.9903011547180.-395821@aleph> <slrn7dnh2c.6tn.guckes@rudin.math.fu-berlin.de> <Pine.WNT.4.10.9903020911460.-421041@aleph> <slrn7dq7dj.edv.guckes@rudin.math.fu-berlin.de> <slrn7dr6m3.f16.c928400@urdybet.pbk.dk> <slrn7dtjm4.pap.davis@aluche.mit.edu> <slrn7du09c.38m.c928400@urdybet.pbk.dk> <slrn7du0ol.38m.c928400@urdybet.pbk.dk> <slrn7e6lh8.hd3.adamb@nathan.enteract.com> <slrn7eb0u0.i54.c928400@urdybet.pbk.dk> <slrn7eb3de.tvi.davis@aluche.mit.edu> <slrn7ebg03.60.c928400@urdybet.pbk.dk>Show Full Headers
Complete Article Headers
Message-ID: <slrn7edje5.1tk.davis@aluche.mit.edu> Subject: Re: fetching expired articles with slrn Date: Wed, 10 Mar 1999 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <Pine.LNX.4.04.9902281839210.5878-100000@paule.ncpa.olemiss.edu> <36d9ff6d.641177409@nntp3.site1.csi.com> <slrn7dktrf.6tn.guckes@rudin.math.fu-berlin.de> <36dacea6.23183718@news.washburn.edu> <slrn7dlrof.6tn.guckes@rudin.math.fu-berlin.de> <Pine.WNT.4.10.9903011547180.-395821@aleph> <slrn7dnh2c.6tn.guckes@rudin.math.fu-berlin.de> <Pine.WNT.4.10.9903020911460.-421041@aleph> <slrn7dq7dj.edv.guckes@rudin.math.fu-berlin.de> <slrn7dr6m3.f16.c928400@urdybet.pbk.dk> <slrn7dtjm4.pap.davis@aluche.mit.edu> <slrn7du09c.38m.c928400@urdybet.pbk.dk> <slrn7du0ol.38m.c928400@urdybet.pbk.dk> <slrn7e6lh8.hd3.adamb@nathan.enteract.com> <slrn7eb0u0.i54.c928400@urdybet.pbk.dk> <slrn7eb3de.tvi.davis@aluche.mit.edu> <slrn7ebg03.60.c928400@urdybet.pbk.dk> 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!not-for-mail X-Deja-AN: 453505824 X-Complaints-To: usenet@eecs-usenet-02.mit.edu X-Trace: eecs-usenet-02.mit.edu 921095623 7078 18.75.2.45 (10 Mar 1999 19:53:43 GMT) Organization: Center for Space Research User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: davis@space.mit.edu NNTP-Posting-Date: 10 Mar 1999 19:53:43 GMT Newsgroups: news.software.readers