Article View: rocksolid.nodes
Article #271Re: hey, what do know ? vichan supports nntp
From: Retro Guy Retro Guy
Date: Sun, 17 May 2020 00:04
Date: Sun, 17 May 2020 00:04
27 lines
2706 bytes
2706 bytes
anonymous wrote:
> this will take me a while to figure out, the function in question is >800 lines.
> i hoped to look up the code that nntpchan used, but to my surprise it is no longer on github,
Is this post.php in vichan?
Looking at this file, I agree it's probably better to send it as vichan expects (via http, whether get or post), instead of trying to insert a complete message as this would require major modification to this file (not fun).
If we can write one function to take a complete article, and break it into what's needed to send it as a post request for vichan, spoolnews can call that function as it's writing to it's own spool. A simple:
if($isset($enable_vichan) && $enable_vichan === true) {
vichan_post($article;
}
function vichan_post($article) {
read $article and break it into pieces necessary to send to vichan;
send to vichan;
}
We could also modify any headers as necessary here, before sending so vichan doesn't reject the post (like stripping down to one Reference and one Newsgroup if necessary).
Retro Guy
--
Posted on: Rocksolid Light
news.novabbs.com
Technical Details
Message-ID:
<21ccbadfaaabeff5c95cd3e7526fc37e$1@news.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-mailReferences:
<d1faafa624cda10417914a17419af431@def4> <a390a213fa3e1af81b3d8c884f62ef13@def4> <a4458e95f3eff77a31ee126a7152c46a$1@z5bqfv5v75kxy7pj.onion> <75cfd107a0bfe9a820be859f6cf8cf23$1@rslight.i2p> <be376db2cbfa3b8a1d806963fe77b0ed$1@z5bqfv5v75kxy7pj.onion> <189aa9e174ef124885b70b788c103036$1@z5bqfv5v75kxy7pj.onion> <6ec5bc71b514f58f97133ee8a54d21b8$1@z5bqfv5v75kxy7pj.onion> <f7d56637d486a71951cd87ff55181941$1@z5bqfv5v75kxy7pj.onion> <ae192c4892344f1c81d9158e2c909933$1@z5bqfv5v75kxy7pj.onion> <107cc61f0c42b36e4efad0880ff887d3$1@z5bqfv5v75kxy7pj.onion> <a5f9837619c6bbc8ae67608883c27443$1@z5bqfv5v75kxy7pj.onion>Show Full Headers
Complete Article Headers
Message-ID: <21ccbadfaaabeff5c95cd3e7526fc37e$1@news.novabbs.com> Subject: Re: hey, what do know ? vichan supports nntp Date: Sun, 17 May 2020 00:04:00 +0000 From: Retro Guy@rslight.i2p (Retro Guy) References: <d1faafa624cda10417914a17419af431@def4> <a390a213fa3e1af81b3d8c884f62ef13@def4> <a4458e95f3eff77a31ee126a7152c46a$1@z5bqfv5v75kxy7pj.onion> <75cfd107a0bfe9a820be859f6cf8cf23$1@rslight.i2p> <be376db2cbfa3b8a1d806963fe77b0ed$1@z5bqfv5v75kxy7pj.onion> <189aa9e174ef124885b70b788c103036$1@z5bqfv5v75kxy7pj.onion> <6ec5bc71b514f58f97133ee8a54d21b8$1@z5bqfv5v75kxy7pj.onion> <f7d56637d486a71951cd87ff55181941$1@z5bqfv5v75kxy7pj.onion> <ae192c4892344f1c81d9158e2c909933$1@z5bqfv5v75kxy7pj.onion> <107cc61f0c42b36e4efad0880ff887d3$1@z5bqfv5v75kxy7pj.onion> <a5f9837619c6bbc8ae67608883c27443$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="4507"; 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$6k5NCypC9iz.yFql3rYh4..rIWJrHSbVtqNrQLm0SLoXrFFJYyMLK