🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #59179

Re: [SLRN] "Importing" an article

#59179
From: John E. Davis
Date: Mon, 13 Mar 2000 00:00
28 lines
1817 bytes
On 13 Mar 2000 21:21:31 GMT, Martijn van Buul <pino+news_software_readers@dohd.cx>
wrote:
>1) I could make lynx dump the content of the article (if available) to a 
>   file. How can I import this file within a S-Lang script?

Use the fopen/fgets/fclose, etc. intrinsic functions.

>
>2) Provided that I -can- 'import' this text, how can I fool SLRN into 
>   displaying this article? replace_article() sounds promising, yet I do
>   not want to 'replace' things, I want to insert things instead!

Right now there is no mechanism in place for inserting new articles
that do not come from the news server.  Perhaps a hook can be added to
the query-server-via-msgid function (or whatever it is called) to
allow the hook to return something if the server fails.

>PS: Ideally, this functionality could be implemented in the (intrinsic) 
>    function locate_header_by_msgid() function.

  Yes, via a hook as mentioned above.  Feel free to implement the hook
and send it to me for incorporation into the next release.

Thanks,

--John

Technical Details
Message-ID: <slrn8cqrgv.sal.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-mail
References: <slrn8cqmna.fqt.pino+news_software_readers@mud.stack.nl>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8cqrgv.sal.davis@aluche.mit.edu>
Subject: Re: [SLRN] "Importing" an article
Date: Mon, 13 Mar 2000 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn8cqmna.fqt.pino+news_software_readers@mud.stack.nl>
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: 597058996
X-Trace: dreaderd 952987170 2939 18.75.2.45
Organization: Center for Space Research
User-Agent: slrn/0.9.6.3 (Linux)
Reply-To: davis@space.mit.edu
Newsgroups: news.software.readers,nl.comp.software.newsreaders