Article View: rocksolid.nodes
Article #285Re: hey, what do know ? vichan supports nntp
From: anonymous
Date: Fri, 22 May 2020 10:46
Date: Fri, 22 May 2020 10:46
18 lines
1994 bytes
1994 bytes
Yes, that approach could work as well. The downside would be that you would have to parse the messages again, while spoolnews is doing that already. Think I'd rather hand something very simple to vichan from the spoolnews script, like this:
{
"Newsgroups": "rocksolid.shared.test",
"Message-ID": "<83434435e73f113dcce2d23d237b6237$1@z5bqfv5v75kxy7pj.onion>",
"References": "",
"Date": "Thu, 14 May 2020 16:16 UTC",
"Subject": "nother post",
"From": "anonymous@anon.com (anonymous)",
"Content-Type": "text/plain; charset=utf-8; format=flowed",
"Content": "This is a test text"
}
It is way easier to just do json_decode and have all the values, than to parse the files from the spool (this somewhat messy part is already taken care of, so I would not like to do it again).
Of course it is just a question of taste where the code should reside, at rslight or at vichan.
trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion
Technical Details
Message-ID:
<1b2bbbcb354ea383343edde8d8bdffe3$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-mailReferences:
<56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com> <c4b1c865ef480a6f4d9459af1391a116@def4> <4a2c95c3090fd2779b68fe50d43b2854$1@news.novabbs.com>Show Full Headers
Complete Article Headers
Message-ID: <1b2bbbcb354ea383343edde8d8bdffe3$1@z5bqfv5v75kxy7pj.onion> Subject: Re: hey, what do know ? vichan supports nntp Date: Fri, 22 May 2020 10:46:00 +0000 From: anonymous@anon.com (anonymous) References: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com> <c4b1c865ef480a6f4d9459af1391a116@def4> <4a2c95c3090fd2779b68fe50d43b2854$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 Newsgroups: rocksolid.nodes Organization: def2 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; posting-account="def2"; logging-data="11995"; mail-complaints-to="usenet@i2pn2.org" User-Agent: Rocksolid Light (news.novabbs.com/getrslight) X-Rslight-Site: $2y$10$XDnWmXqHZ59FV6qnthnyVeHWnj4N.IxuXi0psJieT377fqmxarL2C