🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #49959

Re: autopost

#49959
From: Klaas
Date: Thu, 18 Jan 2001 05:29
30 lines
1682 bytes
Bjorn <bjorn@behindthedecks.com> wrote in message
news:3A65A737.CCCB2F47@behindthedecks.com...
>
> Hi
>
> I meant a more common util, like a simple post to a server.
> something like
>
> #post.pl -h nntpserver -g my.group -e my@email < mymessage
>
> inews seems only to post to localhost and inn. the software
> that are running is typhoon.

Honestly, it would probably take you less time to write something that
simple than to look for it.

Just
-open a socket to news-server, port 119
-send "post\r\n"
-send From, Subject, and Newsgroups headers
-send blank line, followed by the body of the text.
-send ".\r\n"
-send "quit"

Adding some error checking might be a good idea.

-Mike


Technical Details
Message-ID: <945ut0$cc921$1@ID-26705.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!freenix!jussieu.fr!fu-berlin.de!uni-berlin.de!cdr19-205.accesscable.NET!not-for-mail
References: <3A65452B.EB2B08DC@behindthedecks.com> <943oc8$ros$3@support.neth.hp.com> <3A65A737.CCCB2F47@behindthedecks.com>

Show Full Headers
Complete Article Headers
Message-ID: <945ut0$cc921$1@ID-26705.news.dfncis.de>
Subject: Re: autopost
Date: Thu, 18 Jan 2001 01:29:26 -0400
From: "Klaas" <klaas@cs.dal.ca>
References: <3A65452B.EB2B08DC@behindthedecks.com> <943oc8$ros$3@support.neth.hp.com> <3A65A737.CCCB2F47@behindthedecks.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!freenix!jussieu.fr!fu-berlin.de!uni-berlin.de!cdr19-205.accesscable.NET!not-for-mail
Newsgroups: news.software.nntp
Lines: 29
Approved: klaas@cs.dal.ca
NNTP-Posting-Host: cdr19-205.accesscable.net (24.138.19.205)
X-Trace: fu-berlin.de 979795681 12985409 24.138.19.205 (16 [26705])
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200