Rocksolid Light

Welcome to novaBBS

register   nodelist   faq  

Your account also provides newsreader access to all groups at news.i2pn2.org port 119 or 563 (TLS)


rocksolid / Rocksolid Nodes / Re: hey, what do know ? vichan supports nntp

SubjectAuthor
* 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

Pages:1234
Subject: Re: hey, what do know ? vichan supports nntp
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid Light
Date: Fri, 22 May 2020 08:40 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 22 May 2020 08:40 UTC
Organization: Rocksolid Light
Message-ID: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com>
References: <d1faafa624cda10417914a17419af431@def4> <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> <38733f0b7fbd08ae5be319e3a0142eec$1@news.novabbs.com> <449cd5288e0197e06cddd4f43ac0665d$1@z5bqfv5v75kxy7pj.onion> <08a44ea492d98d0db82c7375e1028267$1@z5bqfv5v75kxy7pj.onion> <27f4fd62255c768a08f9d1bdb7735345$1@news.novabbs.com> <d330ee88cc1cc9997b0391cddd84fdf2$1@z5bqfv5v75kxy7pj.onion> <9e98759350f09932564b5389d4f094f0$1@z5bqfv5v75kxy7pj.onion>
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="28738"; 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$ja/gKOEGV.m.9GOxPZSClOB.QluHWa8T00/zLP6NYQySUAV4AxtPy
View all headers
anonymous wrote:

The nntp to nntp connection to update vichan is something I would not use if I have easier ways, and it seems I do (I leave it to rslight, and just read and write files).
So eventually this mod for vichan would be a plugin to an rslight installation.

So if I understand correctly, vichan will read a message from a file and apply it to it's database. If that is correct, how will vichan know the file exists, will it poll a directory? --
Posted on: Rocksolid Light
news.novabbs.com


Subject: Re: hey, what do know ? vichan supports nntp
From: ano...@anon.com (anon)
Newsgroups: rocksolid.nodes
Organization: def5
Date: Fri, 22 May 2020 10:11 UTC
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: ano...@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <c4b1c865ef480a6f4d9459af1391a116@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 22 May 2020 10:11:37+0000
Organization: def5
In-Reply-To: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com>
References: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
View all headers

So if I understand correctly, vichan will read a message from a file and apply it to it's database. If that is correct, how will vichan know the file exists, will it poll a directory?

that's correct. i was planning to call the vichan script  from rslight in case of updates (guess from spoolnews).

Posted on def4


Subject: Re: hey, what do know ? vichan supports nntp
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid Light
Date: Fri, 22 May 2020 09:24 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 22 May 2020 09:24 UTC
Organization: Rocksolid Light
Message-ID: <4a2c95c3090fd2779b68fe50d43b2854$1@news.novabbs.com>
References: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com> <c4b1c865ef480a6f4d9459af1391a116@def4>
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="2248"; 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$4pKscN1YTmbNQ0sg2VNHvexJQBj9YeRKogjddmxU.ml/hcei562c2
View all headers
anon wrote:


So if I understand correctly, vichan will read a message from a file and apply it to it's database. If that is correct, how will vichan know the file exists, will it poll a directory?

that's correct. i was planning to call the vichan script  from rslight in case of updates (guess from spoolnews).

Posted on def4

If you are reading each message as a file, would it work for rslight to just send vichan basically the equivalent of what you saw in /var/spool/rslight/rocksolid/local_groups.txt:
rocksolid.nodes:158
rocksolid.nodes.help:53
etc...

This could tell vichan where rslight has set message pointers and vichan can keep it's own list, then it can go pull the articles it doesn't have and update it's pointer list. If the pointers all match, there are no articles to import.

Is this idea of any use?

Retro Guy


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


Subject: Re: hey, what do know ? vichan supports nntp
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Fri, 22 May 2020 10:46 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 22 May 2020 10:46 UTC
Organization: def2
Message-ID: <1b2bbbcb354ea383343edde8d8bdffe3$1@z5bqfv5v75kxy7pj.onion>
References: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com> <c4b1c865ef480a6f4d9459af1391a116@def4> <4a2c95c3090fd2779b68fe50d43b2854$1@news.novabbs.com>
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
View all headers
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


Subject: Re: hey, what do know ? vichan supports nntp
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Fri, 22 May 2020 19:24 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 22 May 2020 19:24 UTC
Organization: def2
Message-ID: <dfc3ccdd0ba2d83aa3febd427357defd$1@z5bqfv5v75kxy7pj.onion>
References: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com> <c4b1c865ef480a6f4d9459af1391a116@def4> <4a2c95c3090fd2779b68fe50d43b2854$1@news.novabbs.com> <1b2bbbcb354ea383343edde8d8bdffe3$1@z5bqfv5v75kxy7pj.onion>
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="15333"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$rGh9eMhRH2jdD62G0wRSWuk5GAW8HG7ZiEGsuwR8sKt3m/9MiPfdm
View all headers
ok, that was easy, i took message_read and put all articles into something like this:

{       "header": {
        "number": 100,
        "id": "<96042908114f73b92a4b25ecaf31371d@def4>",
        "from": "anon@anon.com",
        "name": "anon",
        "subject": "Re: sync trest def2",
        "newsgroups": "rocksolid.shared.test",
        "followup": null,
        "date": 1589462807,
        "date_thread": null,
        "organization": "def5",
        "xnoarchive": null,
        "references": [
            "<46f0e0c1993dc510ec8653ac72cb4445$1@z5bqfv5v75kxy7pj.onion>"
        ],
        "bestreference": null,
        "content_transfer_encoding": "8bit",
        "mime_version": null,
        "content_type": [
            "text/plain"
        ],
        "content_type_charset": [
            "utf-8"
        ],
        "content_type_name": [
            "unnamed"
        ],
        "content_type_boundary": null,
        "content_type_format": [
            "flowed"
        ],
        "answers": null,
        "isAnswer": false,
        "username": "anon",
        "user_agent": null,
        "isReply": null,
        "threadsize": null
    },
    "body": [
        "nok, seen on def4nnPosted on def4n"
    ]
}

that is the json encoded array that you get when you typecaste the object that message_read returns.
now i only read this into my import routine from vichan. right now i work on a batch import function, and try to wrap my head around some of the details of vichan (which is harder for me than it probably sounds). :-)

cheers

trw --
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Fri, 22 May 2020 20:53 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 22 May 2020 20:53 UTC
Organization: def2
Message-ID: <47921547e66d1985844c048b2f4a280f$1@z5bqfv5v75kxy7pj.onion>
References: <56148a22de20564af15e4ee0c7a2536e$1@news.novabbs.com> <c4b1c865ef480a6f4d9459af1391a116@def4> <4a2c95c3090fd2779b68fe50d43b2854$1@news.novabbs.com> <1b2bbbcb354ea383343edde8d8bdffe3$1@z5bqfv5v75kxy7pj.onion> <dfc3ccdd0ba2d83aa3febd427357defd$1@z5bqfv5v75kxy7pj.onion>
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="26469"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$bqzCKQpbCQDNi7RaKw6J8uZG/4BkAlSvB2KCnvYqCdyLGO8TASZm6
View all headers
ok, i got a kind of lame import routine working (lame because it has to be called per message). but at least it works. got all the boards created too.

cheers

trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Fri, 22 May 2020 21:50 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 22 May 2020 21:50 UTC
Organization: def2
Message-ID: <746ad48c7dcd992903b0f09a875f10fd$1@z5bqfv5v75kxy7pj.onion>
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>
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="1041"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$mfpxtJLZgGL0Vklj5S8pB.P7Mmrg/KfVpXE2n0FWhAEeplPsWLc1W
View all headers
one thing vichan is clearly not prepared to do is to deal with replies to (yet) non existing messages. so no automagic fixing of threads or anything, like ff does.
so the options are: either delete the reference and import such message as a new thread start, or refuse to take it.
the second one looks cleaner to me, and gives the chance to later try it again, so I guess I will opt for this one.
In any event, vichan is sensitive here (should not be a problem once the thing is steadily updated).
Another thing I am contemplating is how many messages to keep. By design I think it keeps 100 messages per board (or something like that), and after starts to delete the oldest ones.
Would be different from the rest of the nodes, which keep the messages forever. Of course, that could be done with vichan as well. But I kind of like the idea of a volatile message base on one of the nodes.

What do you think, Retro ?

cheers

trw  --
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes
Organization: Rocksolid Light
Date: Sat, 23 May 2020 08:17 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Sat, 23 May 2020 08:17 UTC
Organization: Rocksolid Light
Message-ID: <208a215d095e2a90acdc545066307dbe$1@news.novabbs.com>
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>
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="1354"; 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-Spam-Level: *
X-Rslight-Site: $2y$10$NYZNLkptm7.nGmndLEPW6eVpVDNKyvRQfr6RBxiJkfne2J9K5yMaO
View all headers
anonymous wrote:

one thing vichan is clearly not prepared to do is to deal with replies to (yet) non existing messages. so no automagic fixing of threads or anything, like ff does.
so the options are: either delete the reference and import such message as a new thread start, or refuse to take it.
the second one looks cleaner to me, and gives the chance to later try it again, so I guess I will opt for this one.

Do you mean put the message into some holding location and try again in the future to apply it to vichan's database of articles? One thing you can do is grep overview for the message-id of the referenced article. If the server has it, it will be in overview and you can find it. Every group containing articles has a groupname-overview (rocksolid.nodes-overview). Reading this file, you can crossreference message-id to article number, etc. It is tab separated:
160     Re: ddos defense for novabbs.com        anonymous@anon.com (anonymous)  Fri, 22 May 2020 10:50 UTC      <e4cfbed07f97837a031302573d5ebefc$1@z5bqfv5v75kxy7pj.onion> <733615c1436ceffa04cd2d7eb3ec2546$1@news.novabbs.com> <f0ba1870346ce5f36eb9365850311bf7$1@z5bqfv5v75kxy7pj.onion> <715287e8bd4cc83e628a4e69ce6bd304$1@news.novabbs.com>     1709    12      Xref: debiantest rocksolid.nodes:160

In any event, vichan is sensitive here (should not be a problem once the thing is steadily updated).
Another thing I am contemplating is how many messages to keep. By design I think it keeps 100 messages per board (or something like that), and after starts to delete the oldest ones.
Would be different from the rest of the nodes, which keep the messages forever. Of course, that could be done with vichan as well. But I kind of like the idea of a volatile message base on one of the nodes.

What do you think, Retro ?

Expiring my count of messages is nicer than by date, so a group never becomes empty. This is also what Synchronet does and it works well. I like it.

Retro Guy

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


Subject: Re: hey, what do know ? vichan supports nntp
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sat, 23 May 2020 15:34 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Sat, 23 May 2020 15:34 UTC
Organization: def2
Message-ID: <0aa95e99d0630d9dff411f409db00e5e$1@z5bqfv5v75kxy7pj.onion>
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>
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="22718"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$aSq.3cTlJqMmP3dtgqDVNOh4IO3I1ro6uNUM8upYzpkWT5g7ECH4C
View all headers
Do you mean put the message into some holding location and try again in the future to apply it to vichan's database of articles?

Yes, this is more or less what I meant.


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.

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

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

later more,

trw



<?php

  include "config.inc.php";
  include "$file_newsportal";
  include 'message.inc.php';

$groups = array(
'rocksolid.nodes',
'rocksolid.nodes.help',
'rocksolid.nodes.announce',
'rocksolid.shared.encryption',
'rocksolid.shared.entertainment',
'rocksolid.shared.freenet',
'rocksolid.shared.general',
'rocksolid.shared.hacking',
'rocksolid.shared.helpdesk',
'rocksolid.shared.i2p',
'rocksolid.shared.linux',
'rocksolid.shared.news',
'rocksolid.shared.offtopic',
'rocksolid.programming',
'rocksolid.shared.rocksolid',
'rocksolid.shared.security',
'rocksolid.social',
'rocksolid.shared.test',
'rocksolid.shared.tor',
);
$watermarks = json_decode(file_get_contents('watermarks.json'), true);
$update = false;
foreach($groups as $group){
echo($group . "nr");
for ($i = 0; $i < 1000; $i++){
if(!in_array($i,$watermarks[$group])){
$message = message_read($i, 0, $group);
if($message){
echo("processing message # " . $i . " from group " . $group . "nr");
$paddedI = str_pad($i, 5, '0', STR_PAD_LEFT);
$jsonFile = fopen('/var/www/html/vi/vichan-master/debug/' . $paddedI . '_' . $group . '.json', 'w');
fwrite($jsonFile, json_encode((array) $message, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
fclose($jsonFile);
array_push($watermarks[$group],$i);
$update = true; }
}
}
}
if($update){
echo("saving updated watermarksnr");
$jsonWatermarks = fopen('watermarks.json', 'w');
fwrite($jsonWatermarks, json_encode((array) $watermarks, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
fclose($jsonWatermarks);
} else {
echo("no new files foundnr");
}
exit;
?>


--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: hey, what do know ? vichan supports nntp
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Organization: def2
Date: Sat, 23 May 2020 21:33 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: anonym...@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Sat, 23 May 2020 21:33 UTC
Organization: def2
Message-ID: <a4e01850071af95292d537f931769051$1@z5bqfv5v75kxy7pj.onion>
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>
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="4232"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$PQ8ptntp7D/bDZJ.O4dj7ejAizDmkFBcnyuI693YMSscHibDIQuT2
View all headers
so, i have got it basically running, so messages gets synced to and from vichan. it is still sort of clumsy right now...
the fields "date" and "from" are not acknowledged for some reason, so posts get the timestamp of the import, and are "forced anonymous". guess i can live with both, but will try to get it done right.
the work is a bit tedious, but will be definitely be worth it in the end. vichan is super easy to configure, modify, moderate, and it is just looking very nice (still playing with all the css that come with it, but will most likely stay on the dark one).

the main challenge to modify the code from vichan and run it differently seems to be that the context changes depending on how the scripts are run, and in most cases this lets any file inclusions fail (calling from the cli works as well as calling from the webserver, but running it from another script fails, even if the directory is changed).

cheers

trw  --
Posted on def2
z5bqfv5v75kxy7pj.onion


Pages:1234
rocksolid light 0.6.6
clearnet i2p tor