🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #276

Re: hey, what do know ? vichan supports nntp

#276
From: Retro Guy Retro Guy
Date: Mon, 18 May 2020 10:28
25 lines
2845 bytes
anonymous wrote:

> i guess the best would be to insert the function to post to vichan in spoolnews.php, function get_articles line 233 and following. all the data from the current message is nicely parsed at this point and can just be forwarded to vichan.

These are the variables that contain the data for these requests in 
spoolnews.php (function get_articles) near where you specified:

$_GET['Newsgroups'] = $group
$_GET['Message-Id'] = $mid[1]
$_GET['References'] = $references (all of them)
$_GET['Date'] = $finddate[1] is a date string from the message
		$article_date is a unix timestamp of same date
$_GET['Content-Type'] = not currently extracted in spoolnews, but can be
$_GET['Subject'] = $subject[1]
$_GET['From'] = $from[1]
$_GET['X_Sage'] = I'm guessing this header won't be in messages sent to vichan
		unless from another vichan instance

Do you want to switch to a POST request? Since GET has length restrictions, it 
might be best, but requres changes in vichan (post.php)

Retro Guy
-- 
Posted on: Rocksolid Light
news.novabbs.com
Technical Details
Message-ID: <38733f0b7fbd08ae5be319e3a0142eec$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-mail
References: <d1faafa624cda10417914a17419af431@def4> <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> <21ccbadfaaabeff5c95cd3e7526fc37e$1@news.novabbs.com> <c9e36818f5f202c43882d29e4e4f2454$1@z5bqfv5v75kxy7pj.onion> <fbdddf8e34b0650369684bc23b548b2c$1@z5bqfv5v75kxy7pj.onion> <ef7724d12ab89e972d55d14d240811f6$1@z5bqfv5v75kxy7pj.onion> <166c2a01a3e76ee4a0eac92cb5036f43$1@z5bqfv5v75kxy7pj.onion>

Show Full Headers
Complete Article Headers
Message-ID: <38733f0b7fbd08ae5be319e3a0142eec$1@news.novabbs.com>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Mon, 18 May 2020 10:28:00 +0000
From: Retro Guy@rslight.i2p (Retro Guy)
References: <d1faafa624cda10417914a17419af431@def4> <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> <21ccbadfaaabeff5c95cd3e7526fc37e$1@news.novabbs.com> <c9e36818f5f202c43882d29e4e4f2454$1@z5bqfv5v75kxy7pj.onion> <fbdddf8e34b0650369684bc23b548b2c$1@z5bqfv5v75kxy7pj.onion> <ef7724d12ab89e972d55d14d240811f6$1@z5bqfv5v75kxy7pj.onion> <166c2a01a3e76ee4a0eac92cb5036f43$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="29156"; 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$PIFSIfWGqCY8eK1sEZKFoe/J3k4UvPyt2eS0vTO27kWzsAUXzfeN6