🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54121

Re: Writing a Posting Program

#54121
From: Terrance Richard Boyes
Date: Wed, 05 Sep 2001 18:10
59 lines
3639 bytes
Rhino <rhino1@sympatico.ca> wrote:
> I think I need to write a simple posting program and need some information
> on how to do it. I'm an experienced programmer in several languages so I
> don't need to know how to program, just how to compose and post usenet
> messages.

> I'm running Win95 and I would like to post a short message to two particular
> newsgroups every month or so. I am the president of a small club and would
> like to notify people at these two newsgroups about our meetings. I am using
> Outlook Express 5.5 as my main e-mail/newsgroup program but I haven't found
> any features that would let me "autopost" my message so I think I need to
> write my own program to do the job.

Haven't tried news, but it's only a handful of lines of VB to
send an email automatically. And there's example code for those...
Then use whatever scheduler you want to deal with the when.
Remember to either change the Message-ID and Date (and any
other relevant headers) or leave them out from the template
entirely.

> I've skimmed RFC977 and RFC1036 and have a basic idea of the structure of
> the program I need to write. However, I am completely baffled on how to
> establish the environment in which I can submit the NNTP commands to
> establish a connection, POST, and QUIT. Also, I don't know how to establish
> the connection to the desired news server.

Open a socket to the NNTP port of the news server.

If necessary authenticate, AUTHINFO, and go to MODE READER.

POST
check reply
stream the headers and article
..
check reply
QUIT
check reply

> What program do I need to start in order to establish the environment in
> which the connect, POST, and QUIT commands will be recognized? I tried
> entering NNTP and USENET on my MS-DOS command line but that didn't work :-)

For practice purposes you can use telnet server 119.

> Is it possible/desireable for me to use Outlook Express to send the message?

Almost certainly possible (definitely if you have access to a
mail2news gateway), desireable, well not really, it's horrible.

As for what to use, depends what you've got available. But
certainly all of VB, C/C++, Rexx and Perl come with everything
you need and in a pretty easy to use manner. Also a fair
amount of news software is open source, read it.

-- 
<URL:http://www.pierrot.co.uk/>                                  Team AMIGA
I'd love to go out with you, but the man on television told me to say tuned."

Technical Details
Message-ID: <20010905.181031.9E9801DE.hzaa@pierrot.co.uk>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
References: <hJsl7.25009$v%4.2629859@news20.bellglobal.com>

Show Full Headers
Complete Article Headers
Message-ID: <20010905.181031.9E9801DE.hzaa@pierrot.co.uk>
Subject: Re: Writing a Posting Program
Date: Wed, 05 Sep 2001 18:10:31 +0000
From: tez@pierrot.co.uk (Terrance Richard Boyes)
References: <hJsl7.25009$v%4.2629859@news20.bellglobal.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: ECL.Net
X-Trace: mail2news.demon.co.uk 999713447 mail2news:14107 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!tele-post-20.mail.demon.net!pierrot.demon.co.uk!pierrot.co.uk!tez@pierrot.co.uk
X-Lan-Trace: news.pierrot.lan 20010905.181031 news:hzaa IDENT tez@pierrot.demon.co.uk
User-Agent: tin/1.4.3-20000502 ("Marian") (AMIGA)
X-NaMLServ: $VER: v0.9b <tez@pierrot.co.uk>
Lines: 58