🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #47080

Re: fetching expired articles with slrn

#47080
From: Peppe
Date: Thu, 04 Mar 1999 00:00
65 lines
3229 bytes
Thus wrote John E. Davis <davis@space.mit.edu>
> On 3 Mar 99 20:26:13 GMT, Peppe <c928400@student.dtu.dk>
> wrote:
[--- snip ---]
> >        len = strlen (mid);

>    I would modify this to return is len == 0, otherwise mid[0] will
>    result in a range error:

>          if (len == 0)
> 	   return;

thanks for pointing this out.

> >        if (mid[0] == '<' & mid[len-1] == '>')
> >            mid = substr (mid, 2, len-2);

>    Here you need to use 'and' instead of '&':

Hmm, it worked. Back to the docs.

>    Also, if you are using a 1.3.x version of slang, you can use:

>          if ((mid[0] == '<') and (mid[-1] == '>'))
> 	   mid = mid[[1:len-2]];

Neat. Still 1.2.2 here, though.

> >        % Why doesn't this work?
> >        %mid = str_replace_all (mid, "+", "%");

>    It should work.  See below.

[--- snip ---]

> The result should have been:

>    Z%A5sCBRfm12EwIo@thunderbird-sport.freeserve.co.uk

I thought so :-)

> Is it possible that lynx is expanding "%A5" (although I would guess
> that � is produced by %BE, but this difference may be due to character
> set translations)?  Perhaps you should try using, e.g.,

>     mid = str_replace_all (mid, "+", "%25");

> so that lynx expands "%25" to "%".

Let me see... Seems as if I got dejanews encoding wrong. It should be "%2B"
instead. Is it possible to find these encoding somewhere?


For those who would like to use the script, here it is again (hopefully in
the right shape by now :-)



-- 
Preben Guldberg   c928400@student.dtu.dk   http://www.student.dtu.dk/~c928400/
  If you're looking for adventure of a new and different kind, And you
  come across a Girl Scout who is similarly inclined, Don't be nervous,
  don't be flustered, don't be scared. Be prepared!  --Tom Lehrer: Be Prepared

Technical Details
Message-ID: <slrn7du09c.38m.c928400@urdybet.pbk.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.pine.mbox.zip!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7du09c.38m.c928400@urdybet.pbk.dk>
Subject: Re: fetching expired articles with slrn
Date: Thu, 04 Mar 1999 00:00:00 +0000
From: c928400@student.dtu.dk (Peppe)
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>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.pine.mbox.zip!not-for-mail
X-Deja-AN: 451326908
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: usenet@news.net.uni-c.dk
X-Trace: news.net.uni-c.dk 920587337 13920 130.225.71.226 (4 Mar 1999 22:42:17 GMT)
Organization: Home of Peppe
Mime-Version: 1.0
User-Agent: slrn/0.9.5.4 (UNIX)
Reply-To: c928400@student.dtu.dk
NNTP-Posting-Date: 4 Mar 1999 22:42:17 GMT
Newsgroups: comp.mail.pine,news.software.readers