🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #54129

Re: Writing a Posting Program

#54129
From: The Archiver
Date: Thu, 06 Sep 2001 07:13
54 lines
3002 bytes
"Rhino" <rhino1@sympatico.ca> wrote:

>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. 

Programming or making the setup for a program which runs only
twice a month is more work than posting the message manually.

Maintaining the tool will require more work than manual work.
(It - and the host - has to be 'ready to go all the time).

>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.

There are a bunch of autoposters available.
MyNews includes also a mode for posting text-files as raw text 
- and not as an attachment.

>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.

You need basic know how about "winsock programming".
There is a newsgroup related to this topic - and some example programs.

>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 :-)

If you want to learn about this, then try to use Mynews:
it offers a SPY window which monitors every single byte to a logfile
and to a window. There you could see the entire necessary dialog.

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

Yes, doing _your_ job twice a month manually if the more efficient method.

>Once I've established the environment so that the connect, POST, and QUIT
>commands will be accepted, how do I establish the connection to port 119?

Every programming language offers its own interface to TCP/IP-sockets.
Check the documentation for TCP/IP and/or WinSock programming.


HTH
-- 
The Archiver

Technical Details
Message-ID: <01139.691200@archiver.winews.net>
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!cyclone.bc.net!cyclone-sjo1.usenetserver.com!usenetserver.com!news.alt.net!archiver.winews.net!not-for-mail
References: <hJsl7.25009$v%4.2629859@news20.bellglobal.com>

Show Full Headers
Complete Article Headers
Message-ID: <01139.691200@archiver.winews.net>
Subject: Re: Writing a Posting Program
Date: Thu, 06 Sep 2001 07:13:01 +0000
From: archiver@i3w.com (The Archiver)
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!cyclone.bc.net!cyclone-sjo1.usenetserver.com!usenetserver.com!news.alt.net!archiver.winews.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 53
X-Newsreader: MyNews