🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes.announce
Article #151

Re: rslight-0.6.5 available

#151
From: Retro Guy
Date: Fri, 15 May 2020 06:27
63 lines
3654 bytes
anon wrote:

> 
> so, this is nice, it runs like it should, just this one bug with the error
> message on posting.

I'll check the newsportal code to see what specifically leads to that error. 
I know that a badly formatted message can do that, but rslight shouldn't do 
that. A message that is too big can also (big attachment). I saw your 
message with the code snippet, so I'll take a look.

> that went well. finally i went a bit bananas on the logo to celebrate :-)

I like that logo :) Also, in /var/www/html/common/, there is a 'mods' 
directory (or there should be anyway). You should be able to put a custom 
logo in mods/images/, and a custom header.php or style.css in mods/

Either way, overwrite the original or use the mods directory, it should 
work. Obviously, if it's in mods, it is used instead of the original files.

> so very nice work, this gets easier and easier.

Thanks! I still don't know why sed produces an error (but works anyway) on 
debian. It doesn't do that on freebsd.

> the questions i have:
> 
> 1) the cron.php calls all the other scripts, if I understand well. How do
> you avoid two update runs at the same time ?

The scripts write a lock file in /tmp. If the scripts read/write the same 
data as other scripts, they use the same lock file. Even if you run cron 
every minute and it's not done the next time, the scripts will just exit on 
seeing the pid in the lock file is still running.

> 2) talking about integrating other stuff, what would be the best interface
> ? i guess just calling the server, huh ? or directly manipulating the
> spool ?

rslight works by posting via the nntp server, and reading directly from the 
spool files, but also asking the server for some data to provide xover 
information.

Writing to the spool files to post is not a good idea, as the xover data 
will not be written (unless you write that also). You can post by just using 
the nntp server to POST, or you can drop a ready to go message in 
/var/spool/rslight/rocksolid/outgoing/

If you drop a message there, it will be sent to your upstream server on the 
next cron.php run, then will show up on your system when spoolnews.php grabs 
it from upstream and adds it to the spool.

I do have a function in nntp.php (insert_article), that can be used to 
insert the article right away in the local system so you don't need to wait 
for it to be pulled back by spoolnews. This is how the nntp server makes the 
message available immediately.

Creating a custom function for vichan shouln't be hard to do, so it should 
be able to post immediately also.

I'm going to read more of your messages now before I toss out more ideas. 

Retro Guy
Technical Details
Message-ID: <da125000177b26ba92c1fcc908299644$1@rslight.i2p>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
References: <16adcc6170ae9f16487cce34d259ae32$1@def2.i2p> <661fb2ca4ddc821f70279aaed18f195c@def4>

Show Full Headers
Complete Article Headers
Message-ID: <da125000177b26ba92c1fcc908299644$1@rslight.i2p>
Subject: Re: rslight-0.6.5 available
Date: Thu, 14 May 2020 23:27:20 -0700
From: Retro Guy <retroguy@retrobbs.rocksolidbbs.com>
References: <16adcc6170ae9f16487cce34d259ae32$1@def2.i2p> <661fb2ca4ddc821f70279aaed18f195c@def4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid
Lines: 63
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
 logging-data="9870"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com