Rocksolid Light

Welcome to Rocksolid Light

register   nodelist   faq  


rocksolid / rocksolid.nodes / Re: hey, what do know ? vichan supports nntp

SubjectAuthor
* hey, what do know ? vichan supports nntpanon
+* Re: hey, what do know ? vichan supports nntpanon
|`* Re: hey, what do know ? vichan supports nntpRetro Guy
| `* Re: hey, what do know ? vichan supports nntpanon
|  `* Re: hey, what do know ? vichan supports nntpRetro Guy
|   `* Re: hey, what do know ? vichan supports nntpanon
|    `* Re: hey, what do know ? vichan supports nntpanon
|     `* Re: hey, what do know ? vichan supports nntpRetro Guy
|      `* Re: hey, what do know ? vichan supports nntpanon
|       `* Re: hey, what do know ? vichan supports nntpanon
|        +* Re: hey, what do know ? vichan supports nntpanon
|        |`* Re: hey, what do know ? vichan supports nntpanonymous
|        | +* Re: hey, what do know ? vichan supports nntpRetro Guy
|        | |`* Re: hey, what do know ? vichan supports nntpanon
|        | | `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        | |  `* Re: hey, what do know ? vichan supports nntpanonymous
|        | |   `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        | |    `* Re: hey, what do know ? vichan supports nntpanonymous
|        | |     `* Re: hey, what do know ? vichan supports nntpanon
|        | |      +* Re: hey, what do you know: vichan supports nntpanon
|        | |      |+- Re: hey, what do you know: vichan supports nntpRetro Guy
|        | |      |`* Re: hey, what do you know: vichan supports nntpanon
|        | |      | `- Re: hey, what do you know: vichan supports nntpRetro Guy
|        | |      `- Re: hey, what do know ? vichan supports nntpRetro Guy
|        | `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |  `* Re: hey, what do know ? vichan supports nntpanonymous
|        |   `* Re: hey, what do know ? vichan supports nntpanonymous
|        |    `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     +* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |`* Re: hey, what do know ? vichan supports nntpanonymous
|        |     | `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |  `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |   `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |    `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |     `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |      `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |       `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |        `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |         `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |          `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |           `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |            `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |             `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |              `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |               `* Re: hey, what do know ? vichan supports nntpanon
|        |     |                `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |                 `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                  `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                   `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                    `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                     `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |                      `* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                       +* Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                       |+- Re: hey, what do know ? vichan supports nntpanonymous
|        |     |                       |`- Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |                       `* Re: hey, what do know ? vichan supports nntpRetro Guy
|        |     |                        `- Re: hey, what do know ? vichan supports nntpanonymous
|        |     `- Re: hey, what do know ? vichan supports nntpRetro Guy
|        `- Re: hey, what do know ? vichan supports nntpRetro Guy
+- Re: hey, what do know ? vichan supports nntpanon
+* Re: hey, what do know ? vichan supports nntpanon
|`* Re: hey, what do know ? vichan supports nntpanonymous
| +- Re: hey, what do you know....anon
| `* Re: hey, what do know ? vichan supports nntpanonymous
|  `* Re: hey, what do know ? vichan supports nntpRetro Guy
|   `- Re: hey, what do know ? vichan supports nntpanon
+* basics are workingAnonymous
|`- Re: basics are workingRetro Guy
+* guess i will open for business soonAnonymous
|+* Re: guess i will open for business soonMei
||`- Re: guess i will open for business soonRetro Guy
|`- Re: guess i will open for business soonRetro Guy
+- opsec check is goodAnonymous
+- > goo to go.Anonymous
+* yes that should workAnonymous
|`- Re: yes that should workRetro Guy
+* cron or not ?Anonymous
|`- Re: cron or not ?Retro Guy
+- themes on def2.i2pAnonymous
`* ok, ok, i switched the default themeAnonymous
 `* Re: ok, ok, i switched the default themeMei
  `- Re: ok, ok, i switched the default themeanon

Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sat, 16 May 2020 18:05 UTC
-attachment is lost (guess the b64 way of doing things is not overall appreciated)

actually, the attached pic displays on rslight, but the name is lost. bbs and ff cannot apparently not read it correctly and don't recognize that there is an attachment.
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sat, 16 May 2020 19:26 UTC
ok, and threading works as well, but the start of the tread must be present for it to work, as all messages in the thread refer to it (not to each other).

looks really good. now the other way round.

cheers

trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sat, 16 May 2020 20:25 UTC
while this should be easy enough, it is not. they used a get request to sent over all the parameters for the message, including the body. and also the attachments. to use a get request to post information is somewhat bad style, but ok. but for the hell of it, i cannot figure out how they did binary uploads with a get request. guess i will use post instead of get, and insert the commands somewhere in spoolnews.
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sat, 16 May 2020 20:47 UTC
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,
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid Light
Date: Sat, 16 May 2020 23:49 UTC
anonymous wrote:

ok, just inserting those two into the outspool of rslight made them appear on rocksolid.shared.test (this was the defined group). works out of the box.

Nice! The format of the messages looks good, shouldn't be a problem.

to do:

-threading is broken (guess the header is not correct by our standards)

As I posted in r.s.test, it may be that vichan only wants one Reference.

-attachment is lost (guess the b64 way of doing things is not overall appreciated)

I tried a header change in a test spool on the message, but still 'unnamed'. I'll look a bit more into this.

Retro Guy

--
Posted on: Rocksolid Light
news.novabbs.com



Subject: Re: hey, what do know ? vichan supports nntp
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid Light
Date: Sun, 17 May 2020 00:04 UTC
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



Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sun, 17 May 2020 16:46 UTC

Is this post.php in vichan?

yes.

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).

yes, i concur.
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.

yes, i had that in mind too. it comes down to :
-parsing the message
-sending a post stream including the attachments (if any), probably using curl
-modying post.php on vichan to accept a message number from the post stream instead of creating it itself

doesn't reject the post (like stripping down to one Reference and one group

either that or we modify vichan. guess it is better to modify the message.


















--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sun, 17 May 2020 18:27 UTC
maybe i will go the full 9 yards and make a hacked version of vichans post.php, i am just not sure yet what it would mean to include and run it from rslights side. i guess part of the environment would be different...but i just like the idea to skip the webserver and operate directly on the php code of vichan (via the webserver it is easier, of course...). --
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sun, 17 May 2020 19:30 UTC
these are the parameters that post.php expects for importing messages:
$_GET['Newsgroups']
$_GET['Message-Id']
$_GET['References']
$_GET['Date'])
$_GET['Content-Type']
$_GET['Subject']
$_GET['From']
$_GET['X_Sage']
So no need to change anything for the message id, it already uses it.
Even for text only messages though the content is written raw in the request body, just as files, i guess. Seeing that both the files and the message are already present as local files, maybe i can redirect this.
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sun, 17 May 2020 20:40 UTC
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.
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Pages:123456789
rocksolid light 0.6.5f
clearnet i2p tor