🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Josin Etienne Wed, 30 Sep 1998 00:00
WANTED: expect-based interface to ascii mail reader
#43482
Author: Josin Etienne
Date: Wed, 30 Sep 1998 00:00
32 lines
1502 bytes

i am looking for an expect-based batch mail reader 

-> more to the point, it would be an interface to an ascii (text-only)
   mail reader like trn, rn, or nn.

what i want to do:

    assuming these 3 newsgroups are in my .newsrc:
        alt.cuisine.french
        alt.health.food
        alt.science.progress
    
    i wish to find all unread articles that have in their title:
         "strawberry twinkies"

    and save them.

    *without user interaction* <-                       

i [think] could roll out my own, but i thought i would ask first...

thanks, josin
        

_________________________________________________________________________
In Heaven there will be no DOS, no Intel, and above all, no Bill.



Re: WANTED: expect-based interface to ascii mail reader
#43484
Author: Josin Etienne
Date: Wed, 30 Sep 1998 00:00
19 lines
1289 bytes
On Tue, 29 Sep 1998, Josin Etienne wrote:

> 
> 
> i am looking for an expect-based batch mail reader 
> 
> -> more to the point, it would be an interface to an ascii (text-only)
>    mail reader like trn, rn, or nn.
> 

sorry, [for all of the message] i meant to say 'news' rather than 'mail'.

-josin
_________________________________________________________________________
In Heaven there will be no DOS, no Intel, and above all, no Bill.



Re: WANTED: expect-based interface to ascii mail reader
#43497
Author: lvirden
Date: Thu, 01 Oct 1998 00:00
43 lines
2346 bytes
According to Josin Etienne  <josin@dimensional.com>:
:
:
:i am looking for an expect-based batch mail reader 
:
:-> more to the point, it would be an interface to an ascii (text-only)
:   mail reader like trn, rn, or nn.
:
:what i want to do:
:
:    assuming these 3 newsgroups are in my .newsrc:
:        alt.cuisine.french
:        alt.health.food
:        alt.science.progress
:    
:    i wish to find all unread articles that have in their title:
:         "strawberry twinkies"
:
:    and save them.
:
:    *without user interaction* <-                       

1. I don't know of anything like you describe

2. However, I am uncertain that what you describe is really what you
have to build.  Instead, I would assume that all you need is an NNTP client
extension for Tcl that would allow you to interact with an NNTP server
using a newsrc file.  Then you could just retrieve the article headerss
yourself, do the regsub against the subject, and if it matched, retrieve
the article.

To go from there, locate one of the relatively few tcl/tk based news
readers I have seen - <URL:http://www.purl.org/NET/Tcl-FAQ/part4> lists
4 I believe - and scavange the actually NNTP procs to do what you want.

-- 
<URL:mailto:lvirden@cas.org> Quote: In heaven, there is no panic,
<*> O- <URL:http://www.purl.org/NET/lvirden/> |     only planning.
Unless explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.

Re: WANTED: expect-based interface to ascii mail reader
#43504
Author: Alexandre Ferrieux
Date: Thu, 01 Oct 1998 00:00
14 lines
1267 bytes
lvirden@cas.org wrote:
> 
> To go from there, locate one of the relatively few tcl/tk based news
> readers I have seen ... and scavange the actually NNTP procs to do 
> what you want.

If you prefer to hack it yourself, without reading RFC 1036 (NNTP), I'd
suggest you to telnet on port 119 to your newsfeed and type 'help'.
Then, from Tcl you just open a socket to it on this port, -buffering
line, and puts/gets as needed...

-A

Re: WANTED: expect-based interface to ascii mail reader
#43507
Author: Josin Etienne
Date: Thu, 01 Oct 1998 00:00
36 lines
1953 bytes
thanks for the responses guys !

i found a tcl-based
thing called newsspy, which i got to work without a glitch off the tarball.

newsspy (which talks to the news server) will collect all the matching 
articles (for a list of newsgroups and keywords) into one file, and mail
that file to you.


someone mentioned (perl-based) newscan. it requires several perl packages
or modules to be installed...  i will take a look at it.


i still would like to find/do an expect interface to a news reader.

i modified newsspy so that i get a list of the matching article numbers,
which  i could later feed to my expect script-to-be to:
start the ascii newsreader,
take me to each article, and then
go into interactive mode for me to respond, and then,
go out of interactive mode and take me to next article...

talk about laziness...

probably newsspy is all i need.

thnks again - josin

_________________________________________________________________________
In Heaven there will be no DOS, no Intel, and above all, no Bill.



Re: WANTED: expect-based interface to ascii mail reader
#43512
Author: Joerg Uecker
Date: Thu, 01 Oct 1998 00:00
17 lines
1131 bytes
Josin Etienne  <josin@dimensional.com> wrote:

>     i wish to find all unread articles that have in their title:
>          "strawberry twinkies"

Linleech does this, from the readme:

>linleech is a small utility that will search through all the articles in
>a given USENET group and match the subject line against a given set of
>words. If it is matched, the article will be retrieved.

http://cerealbox.angel.nu/linleech.html

-- 
J"org Uecker <ju@pirx.ruhr.de>

Re: WANTED: Expect-based interface to ascii mail reader
#43519
Author: Jeremy Mathers
Date: Fri, 02 Oct 1998 00:00
26 lines
2045 bytes
In article <Pine.SUN.3.96.981001154222.23321B-100000@flatland.dimensional.com>,
Josin Etienne  <josin@dimensional.com> wrote:
>i found a tcl-based
>thing called newsspy, which i got to work without a glitch off the tarball.
>newsspy (which talks to the news server) will collect all the matching 
>articles (for a list of newsgroups and keywords) into one file, and mail
>that file to you.

Could you provide a URL?  This looks interesing.

>someone mentioned (perl-based) newscan. it requires several perl packages
>or modules to be installed...  i will take a look at it.

Perl solutions do not interest me - they belong in some other
newsgroup, anyway.

>i still would like to find/do an Expect interface to a news reader.

I assume this is now an academic exercise (the best kind, since those
are what you learn from).  But I don't understand what is so hard
about it.  All you do (assuming you are proficient at Expect in
general) is start with: spawn telnet news 119
and go from there.  It is just like any other Expect project.  You do
it live and then replicate your experiences into the script.

Re: WANTED: Expect-based interface to ascii mail reader
#43527
Author: lvirden
Date: Sat, 03 Oct 1998 00:00
27 lines
2041 bytes
According to Jeremy Mathers <valley@pookie.uchicago.edu>:
:In article <Pine.SUN.3.96.981001154222.23321B-100000@flatland.dimensional.com>,
:Josin Etienne  <josin@dimensional.com> wrote:
:>i found a tcl-based
:>thing called newsspy, which i got to work without a glitch off the tarball.

:Could you provide a URL?  This looks interesing.

From the Tcl software catalog, I see this reference:
<URL:http://www.purl.org/NET/Tcl-FAQ/part4.html>
What: Newsspy
Where: <URL:ftp://134.93.129.91/pub/newsspy/newsspy-1.0.tgz>
Description: A tcl program to connect to a NNTP news server and scan
	article headers for special keywords.  If found, read article
	and append to a file.  Can be invoked from cron.
Updated:
Contact: <URL:mailto:hofmann@vipmza.physik.uni-mainz.de> (hofmann)


-- 
<URL:mailto:lvirden@cas.org> Quote: In heaven, there is no panic,
<*> O- <URL:http://www.purl.org/NET/lvirden/> |     only planning.
Unless explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads