🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Arjan Drieman Mon, 03 Jul 2000 00:00
[slrn/slang] Fully automagically post article?
#62966
Author: Arjan Drieman
Date: Mon, 03 Jul 2000 00:00
24 lines
1544 bytes
Hello,

I am looking for a way to automatically post articles either by
directly talking to the NNTP port of my newsserver, or by composing
them automatically and post them from a slang script.

I have no problem retreiving the information needed for the articles,
but I have a problem getting them on the server ;-)

I'll illustrate it with an example how I'd do this by telnetting to
my news server, port 119:

--- telnet news.a2000.nl 119
post
Subject: blahblah
Message-Id: Some_M-ID@host.domain
Newsgroups: group,group
From: Variable from address!
Summary: A line
Path: some!preloading!needed
Reply-To: duc...@duckie.neep.net

Message body
Re: [slrn/slang] Fully automagically post article?
#62949
Author: Arjan Drieman
Date: Mon, 03 Jul 2000 00:00
17 lines
1441 bytes
On 3 Jul 2000 03:07:23 GMT, Arjan Drieman
        <qhpxvr@abqr0911.n2000.ay.invalid> wrote:

>I am looking for a way to automatically post articles either by
>directly talking to the NNTP port of my newsserver, or by composing
>them automatically and post them from a slang script.

From within slrn, that is :P   Sorry if I confused anyone.

>I have no problem retreiving the information needed for the articles,
>but I have a problem getting them on the server ;-)


Thanks,
Arjan
Re: [slrn/slang] Fully automagically post article?
#62954
Author: J.B. Nicholson-Owens
Date: Mon, 03 Jul 2000 00:00
12 lines
1230 bytes
Arjan Drieman wrote:
> I am looking for a way to automatically post articles either by
> directly talking to the NNTP port of my newsserver, or by composing
> them automatically and post them from a slang script.

You'll probably want to use a completely different program.  You could use
slrnpull (and cron if what you want to post is to be periodically posted) or
something not related to slrn at all (something geared for posting not being
a full newsreader).  I'm sure there are plenty of freely available options
to do this.

Re: [slrn/slang] Fully automagically post article?
#62965
Author: Arjan Drieman
Date: Mon, 03 Jul 2000 00:00
48 lines
3031 bytes
On 3 Jul 2000 06:36:45 GMT, J.B. Nicholson-Owens <jbn@forestfield.org> wrote:
>> I am looking for a way to automatically post articles either by
>> directly talking to the NNTP port of my newsserver, or by composing
>> them automatically and post them from a slang script.
>
>You'll probably want to use a completely different program.  You could use
>slrnpull (and cron if what you want to post is to be periodically posted) or
>something not related to slrn at all (something geared for posting not being
>a full newsreader).  I'm sure there are plenty of freely available options
>to do this.

Well see, I don't want to post the same article periodically.  That'd
be no problem, I'd just use rnews or something.

I'm a spam canceler.  In the nl.* hierarchy, ECP is handled by a bot,
as well as bincancels.  What I mainly do is just cancel MMF and EMP
spam, as well as an occasional spew.  I do that just when I see it, by
telnetting to my news server's NNTP port.

It's a pain in the butt to do it that way, so I want to have a script
in slrn to just hit a magic key combination.  It then asks me for the
type of cancel, and constructs a proper third party cancel from the
original headers.  Retreiving that information, building a proper MID
etcetera is no problem.

The only problem is to get slrn to send the cancel.  The From line is
not my own, I need to preload a path like cyberspam!mmfspam, need to
use the Control field, etcetera.  So just using post_hooks doesn't do
the trick as slrn doesn't allow composed From lines.  So I thought I'd
just somehow push it to the server myself, if possible.

I just found out there's a "system" function in slang just like c, so
I'll probably end up stuffing my cancel in a file and using "system"
to call a shell script that uses netcat to push it to the server.  I
just think it's ugly that way and I'd rather do it directly from slrn
;-)

I hope it makes a little more sense now :-)


Thanks,
Arjan
-- 
Maak spam illegaal!
Teken de petitie voor het Europees Parlement.
http://www.euro.cauce.org/

Re: [slrn/slang] Fully automagically post article?
#63043
Author: Thomas Schultz
Date: Thu, 06 Jul 2000 00:00
14 lines
1377 bytes
On 03 July 2000 at 09:57 GMT, Arjan Drieman wrote:
[...]
> I just found out there's a "system" function in slang just like c, so
> I'll probably end up stuffing my cancel in a file and using "system"
> to call a shell script that uses netcat to push it to the server.  I
> just think it's ugly that way and I'd rather do it directly from slrn

It might be a bit more elegant (though not ideal) to use the popen()
function to open a pipe to a program like rpost and write your cancel
directly to it.
-- 
Thomas Schultz <tststs@gmx.de>

Re: [slrn/slang] Fully automagically post article?
#63061
Author: Arjan Drieman
Date: Fri, 07 Jul 2000 00:00
21 lines
1766 bytes
On 6 Jul 2000 18:53:58 GMT, Thomas Schultz <tststs@gmx.de> wrote:
>> I'll probably end up stuffing my cancel in a file and using "system"
>> to call a shell script that uses netcat to push it to the server.  I

>It might be a bit more elegant (though not ideal) to use the popen()
>function to open a pipe to a program like rpost and write your cancel
>directly to it.

I've tried and inews for a little, but I found that inews is far too
slow with all the header checking it does, so now I just use netcat to
throw it at my newsserver ;-)  However, I kinda like the checks inews
performs.

Would popen() allow me to run inews as a background process to speed up
the stuff a tad?


Thanks for the advice,
Arjan

Re: [slrn/slang] Fully automagically post article?
#63075
Author: Thomas Schultz
Date: Fri, 07 Jul 2000 00:00
12 lines
1326 bytes
On 07 July 2000 at 00:33 GMT, Arjan Drieman wrote:
[...]
> Would popen() allow me to run inews as a background process to speed
> up the stuff a tad?

Not to my knowledge. In this case, writing to a temporary file and
then calling inews with the system() function (which allows creating
background processes) might currently indeed be the best choice.
-- 
Thomas Schultz <tststs@gmx.de>

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