🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #296

Re: hey, what do know ? vichan supports nntp

#296
From: Retro Guy Retro Guy
Date: Sun, 24 May 2020 00:57
23 lines
3065 bytes
anonymous wrote:

>>One thing you can do is grep overview for the message-id of the referenced article. 

> I used message_read for now, and made one new file to follow the status of the exports. Actually, this kind of thing would be better done in one of the existing code bases, this was just the fastest way for me to test the concept.

Same as the way I test. I just write a test script and get it working, then apply to existing codebase. Much easier to not break existing code that way.

> The code lines below export any new message that is found into a format that is translated later in the new post.php of vichan.

> So I guess I could call this script at the end of spoolnews (or maybe just insert it).

What I'd like to see, if it's possible, is calling from spoolnews. We just put an $enable_vichan variable in config so if using vichan it will run the code and send the data needed by vichan. If disabled, it does nothing.

> On the other end, I have a modified post.php, which reads the oldest message (by name) and imports it. I could not modify it in a way yet that would allow to cycle through all existing messages, so the whole setup is just an interim solution yet (but it is importing the messages right now).

Since spoolnews loops through every message that it imports, it should work to just make the call to format and send to vichan in that loop. Every message rslight decides it wants (let rslight determine if a message is new or already existing), will then get sent to vichan. Thoughts?

Retro Guy

-- 
Posted on: Rocksolid Light
www.novabbs.com
Technical Details
Message-ID: <6b6cb9f2c92ff8fb564128e73a2f66e3$1@www.novabbs.com>
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: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com> <c4b1c865ef480a6f4d9459af1391a116@def4> <4a2c95c3090fd2779b68fe50d43b2854$1@news.novabbs.com> <1b2bbbcb354ea383343edde8d8bdffe3$1@z5bqfv5v75kxy7pj.onion> <dfc3ccdd0ba2d83aa3febd427357defd$1@z5bqfv5v75kxy7pj.onion> <47921547e66d1985844c048b2f4a280f$1@z5bqfv5v75kxy7pj.onion> <746ad48c7dcd992903b0f09a875f10fd$1@z5bqfv5v75kxy7pj.onion> <208a215d095e2a90acdc545066307dbe$1@news.novabbs.com> <0aa95e99d0630d9dff411f409db00e5e$1@z5bqfv5v75kxy7pj.onion>

Show Full Headers
Complete Article Headers
Message-ID: <6b6cb9f2c92ff8fb564128e73a2f66e3$1@www.novabbs.com>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Sun, 24 May 2020 00:57:00 +0000
From: Retro Guy@rslight.i2p (Retro Guy)
References: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com> <c4b1c865ef480a6f4d9459af1391a116@def4> <4a2c95c3090fd2779b68fe50d43b2854$1@news.novabbs.com> <1b2bbbcb354ea383343edde8d8bdffe3$1@z5bqfv5v75kxy7pj.onion> <dfc3ccdd0ba2d83aa3febd427357defd$1@z5bqfv5v75kxy7pj.onion> <47921547e66d1985844c048b2f4a280f$1@z5bqfv5v75kxy7pj.onion> <746ad48c7dcd992903b0f09a875f10fd$1@z5bqfv5v75kxy7pj.onion> <208a215d095e2a90acdc545066307dbe$1@news.novabbs.com> <0aa95e99d0630d9dff411f409db00e5e$1@z5bqfv5v75kxy7pj.onion>
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
Organization: Rocksolid Light
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
 logging-data="25294"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$1XJ3MkMZyL55I8fbyiUVAeUFexaXpF5ATBcHN5sUy8BwvR4L3Ntlq