Whiskers wrote:
> Mike Easter
>> Whiskers wrote:
>>
>>> The most direct method is to fire up your telnet client and use it to log
>>> in to your news-server, then issue the ARTICLE command; eg (you may need
>>> the AUTHINFO USER username and AUTHINFO PASS password commands to log in):
>> How would one write a (bash) script that would contain user/pass for
>> server authentication (for a general/net server, not personal server)
>> and then pause for pasting in the MID so that the message result would
>> then be/get pasted into some editor such as gedit and/or perhaps saved
>> as a .nws file?
Somewhere I read that doing it, an nntp session, with Python might be
easier.
> Lynx is very handy for scripting, and can handle news: and nntp:// URLs; it
> will even prompt you for login details if necessary :)) (It isn't the
> world's best tool for reading and posting to newsgroups, although it can).
>
> Try
>
> #v+
> $ lynx nntp://
news.individual.net/"<
1l342q2.1sn44nt1hsvttmN%sn...@spambin.fsnet.co.uk>"
> #v-
>
> from a command prompt, if you have Lynx installed and an active account
> with Individual.net.
I installed lynx and I can see where to configure a default news server,
but I can't see how to handle/configure/automate the authentication for
nntp, just something like ftp.
In Win, MS configured a handy little integration between IE and OE. If
one uses the syntax
news:mid
(in which mid is without angle brackets) into the IE address line, then
IE will call OE to log into its configured default news server and fetch
the article with the article command, which OE puts into angles.
Here is a log session for OE
NNTP Log started at 05/21/2013 05:48:02
NNTP: 05:48:02 [db] Connecting to '
news.eternal-september.org' on port 119.
NNTP: 05:48:02 [rx] 200
news.eternal-september.org InterNetNews NNRP
server INN 2.6.0 (20130210 snapshot) ready (posting ok)
NNTP: 05:48:02 [tx] MODE READER
NNTP: 05:48:02 [rx] 200
news.eternal-september.org InterNetNews NNRP
server INN 2.6.0 (20130210 snapshot) ready (posting ok)
NNTP: 05:48:02 [tx] AUTHINFO USER munged
NNTP: 05:48:03 [rx] 381 Enter password
NNTP: 05:48:03 [tx] AUTHINFO PASS ********
NNTP: 05:48:03 [rx] 281 Authentication succeeded
NNTP: 05:48:03 [tx] ARTICLE <
avvifj...@mid.individual.net>
NNTP: 05:48:04 [rx] 220 0 <
avvifj...@mid.individual.net> article
NNTP: 05:48:04 [db] Connection to '
news.eternal-september.org' closed.
The most likely way I would use lynx would be to configure it for a news
server, hopefully be able to configure for a user/pass, then open it
with a lynx command and then input the nntp URL with the article.
But if I can't configure lynx with a user/pass, I think I would rather
learn how to write a .py.
--
Mike Easter