🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Bjorn Wed, 17 Jan 2001 07:09
autopost
#49902
Author: Bjorn
Date: Wed, 17 Jan 2001 07:09
17 lines
1526 bytes
Hi,

Is there any autopost script, preferably perl, out there?
I need to post a message monthly, peferably using a cronjob for
that. Im not a perl hacker, otherwise i could have written one 
myself. =)

/Bjorn

-- 
"computer games don't affect kids, I mean if pac man affected us as
kids, we'd
all sit around in a darkened room munching pills and listening to
repetitive
music."...
Re: autopost
#49908
Author: Frank Slootweg
Date: Wed, 17 Jan 2001 09:24
7 lines
1117 bytes
  Assuming you run a News server and that is INN, see "The Frontend
Programs" in the "Installing InterNetNews" manual.

  My apologies for being so secretive, but such a facility is often
abused (by spammers et al.), so it is best to be not too open /
spammer-friendly when giving pointers.
Re: autopost
#49910
Author: Russ Allbery
Date: Wed, 17 Jan 2001 12:57
13 lines
1283 bytes
Bjorn <bjorn@behindthedecks.com> writes:

> Is there any autopost script, preferably perl, out there?  I need to
> post a message monthly, peferably using a cronjob for that. Im not a
> perl hacker, otherwise i could have written one myself. =)

<http://www.novia.net/~pschleck/auto-faq/> is the standard one.  I use it
for some things.  It's a touch complicated to configure, but it works
quite well.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: autopost
#49921
Author: Bjorn
Date: Wed, 17 Jan 2001 14:07
29 lines
1916 bytes
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.

/Bjorn

Frank Slootweg wrote:
> 
>   Assuming you run a News server and that is INN, see "The Frontend
> Programs" in the "Installing InterNetNews" manual.
> 
>   My apologies for being so secretive, but such a facility is often
> abused (by spammers et al.), so it is best to be not too open /
> spammer-friendly when giving pointers.

-- 
"computer games don't affect kids, I mean if pac man affected us as
kids, we'd
all sit around in a darkened room munching pills and listening to
repetitive
music."...
Re: autopost
#49959
Author: 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


Re: autopost
#49988
Author: Frank Slootweg
Date: Fri, 19 Jan 2001 09:31
36 lines
2076 bytes
  I see (I think inews can also post to a remore host, but it probably
still requires INN.). Anyway, you may want to have a look at rpost(1)
from the suck package (http://members.home.com/bobyetman/index.html),
however see the recent threads in this group on 'bugs' in rpost (look
for "suck").

Bjorn <bjorn@behindthedecks.com> wrote:
> 
> 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.
> 
> /Bjorn
> 
> Frank Slootweg wrote:
>> 
>>   Assuming you run a News server and that is INN, see "The Frontend
>> Programs" in the "Installing InterNetNews" manual.
>> 
>>   My apologies for being so secretive, but such a facility is often
>> abused (by spammers et al.), so it is best to be not too open /
>> spammer-friendly when giving pointers.
> 
> -- 
> "computer games don't affect kids, I mean if pac man affected us as
> kids, we'd
> all sit around in a darkened room munching pills and listening to
> repetitive
> music."...
Re: autopost
#49994
Author: Bjorn
Date: Fri, 19 Jan 2001 15:49
61 lines
2920 bytes
You were right, it was faster to write one myself. =)

su-2.04$ ./newspost.pl 

usage: ./newspost.pl -n [newsserver] -e [email] -s [subject] -g
[grouplist] -f [file]

        -n      Newsserver      The server that you should post to.
        -e      email           The email adress you will post from
        -s      subject         The subject.
        -g      newsgroup       a list of groups seperated with a ","
(do not use spaces)
        -f      file            The message to be posted. (Fullpath if
in crontab)

su-2.04$

It can be run in crontab without problem. Ill have to do some checks and
stuff, its really hardcore right now. Maybe if im happy about the code I
add it on a page. 

/Bjorn

Klaas wrote:
> 
> 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

-- 
"computer games don't affect kids, I mean if pac man affected us as
kids, we'd
all sit around in a darkened room munching pills and listening to
repetitive
music."...
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