Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Have you reconsidered a computer career?


devel / Programming / vichan to do list

SubjectAuthor
* vichan to do listAnonymous
+* i just uploaded my code hereAnonymous
|`- i just uploaded my code hereRetro Guy
+- so far seems to workAnonymous
+- alright, multi server updateAnonymous
+* posting to new serverAnonymous
|`- posting to new serverRetro Guy
+- errorAnonymous
+* posting articlesAnonymous
|`- posting articlesRetro Guy
+* alright, i have it goingAnonymous
|`* alright, i have it goingRetro Guy
| `- alright, i have it goingRetro Guy
+* overchanAnonymous
|`- overchanRetro Guy
+- send to rslightAnonymous
+- btw, what about your vichan ?Anonymous
+* jsonAnonymous
|`- jsonMarc SCHAEFER
+- jsonAnonymous
+- date problemsAnonymous
+- ok, fixed the dateAnonymous
+* almost donetrw
|`- almost doneRetro Guy
+- almost doneAnonymous
+* latest codeAnonymous
|`* latest codeRetro Guy
| `* latest codeRetro Guy
|  `* latest codeanon
|   `* latest codeRetro Guy
|    `* latest codeanon
|     `* latest codeanon
|      `* latest codeanon
|       `* latest codeanon
|        `- latest codereshmakavi
+- threadsAnonymous
+* subjectAnonymous
|`* subjectRetro Guy
| `* subjectRetro Guy
|  `* subjectRetro Guy
|   `- subjectanon
+* status updateAnonymous
|`* status updateRetro Guy
| `* status updateRetro Guy
|  +- status updateRetro Guy
|  `* status updateanon
|   +* status updateanon
|   |`* status updateRetro Guy
|   | `* status updateanon
|   |  `* status updateanon
|   |   `* status updateRetro Guy
|   |    +- status updateRetro Guy
|   |    `* status updateanon
|   |     `* status updateRetro Guy
|   |      `- status updateRetro Guy
|   `- status updateRetro Guy
+* vichan to do listanon
|+- vichan to do listRetro Guy
|`* vichan to do listanon
| `* vichan to do listRetro Guy
|  `* vichan to do listRetro Guy
|   `* vichan to do listRetro Guy
|    `* vichan to do listanonymous
|     `* vichan to do listRetro Guy
|      `* vichan to do listanon
|       `* vichan to do listRetro Guy
|        `* vichan to do listRetro Guy
|         `* vichan to do listRetro Guy
|          `* vichan to do listanon
|           +- vichan to do listanon
|           `* vichan to do listRetro Guy
|            `* vichan to do listRetro Guy
|             `* vichan to do listanonymous
|              `* vichan to do listanonymous
|               +- vichan to do listanonymous
|               `- vichan to do listRetro Guy
+* vichan to do listanon
|`* vichan to do listanon
| `- vichan to do listMarc SCHAEFER
`* vichan to do listanon
 `- vichan to do listRetro Guy

Pages:1234
Re: json

<rbo4e8$d5d$1@shakotay.alphanet.ch>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=413&group=rocksolid.programming#413

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn.org!weretis.net!feeder7.news.weretis.net!news.uzoreto.com!news.alphanet.ch!alphanet.ch!.POSTED!news.alphanet.ch!not-for-mail
From: schaefer@alphanet.ch (Marc SCHAEFER)
Newsgroups: rocksolid.programming
Subject: Re: json
Date: Tue, 9 Jun 2020 15:56:24 +0200 (CEST)
Organization: Posted through ALPHANET (https://news.alphanet.ch/)
Lines: 7
Message-ID: <rbo4e8$d5d$1@shakotay.alphanet.ch>
References: <code.100.gmepn@anon.com> <code.250.js709@anon.com>
NNTP-Posting-Host: localhost
X-Trace: shakotay.alphanet.ch 1591710984 13486 127.0.0.1 (9 Jun 2020 13:56:24 GMT)
X-Complaints-To: usenet@alphanet.ch
NNTP-Posting-Date: Tue, 9 Jun 2020 13:56:24 +0000 (UTC)
User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.16.0-10-amd64 (x86_64))
 by: Marc SCHAEFER - Tue, 9 Jun 2020 13:56 UTC

Anonymous <poster@anon.com> wrote:
> yes i can see json :-)
> what about it ? what do you achieve with that code ?

I saw some discussions about people wanting some JSON access to rocksolid, so
this is another. As it was trivial to add JSON support to my read-only
web NNRP interface, I did it.

json

<code.252.3c4fkt@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=414&group=rocksolid.programming#414

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: json
Date: Tue, 09 Jun 2020 08:03:45 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.252.3c4fkt@anon.com>
References: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="9974"; mail-complaints-to="usenet@i2pn2.org"
 by: Anonymous - Tue, 9 Jun 2020 15:03 UTC

>I saw some discussions about people wanting some
>JSON access to rocksolid, so

I guess you refer to Retro Guy and myself discussing. The interface I introduced on one of my nodes is using json now to receive posts that are synced from other nodes (+ there is a json api already that comes with it).

> As it was trivial to add JSON support to my read
>only web NNRP interface, I did it.

yeah, i took a look at the link (also linked your site here, btw).

cheers

trw

--
Posted on def2

date problems

<code.273.3lnqdz@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=434&group=rocksolid.programming#434

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: date problems
Date: Fri, 12 Jun 2020 08:01:39 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.273.3lnqdz@anon.com>
References: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="15740"; mail-complaints-to="usenet@i2pn2.org"
 by: Anonymous - Fri, 12 Jun 2020 15:01 UTC

>-fix date for message import

this one turns out to be really tough. i think it was not meant to work that way (so, to have the original posting time).

i have this line here in the function post (functions.php), which sets the time for the article to be inserted:

$query->bindValue(':time', isset($post['time']) ? $post['time'] : time(), PDO::PARAM_INT);

so, if we don't have a time, we take the current time. this is how i read this line.
but for some reason even if the variable is set to the original time of the article, the current time is taken instead.
maybe it has to do the complicated callback construct that they use (which i don't fully understand).

:-(

trw

--
Posted on def2

ok, fixed the date

<code.274.1w7710@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=435&group=rocksolid.programming#435

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: ok, fixed the date
Date: Fri, 12 Jun 2020 11:23:51 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.274.1w7710@anon.com>
References: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="12012"; mail-complaints-to="usenet@i2pn2.org"
 by: Anonymous - Fri, 12 Jun 2020 18:23 UTC

had nothing to do with the callback function, i was simply setting the variable after it was used.

new status:

open:
-fix proper handling of attachments from imported messages
-code simplification and cleanup

closed:
-fix date for message import
-fix catalog link in the footer, catalog is off: i thought i had to change the templates, but it is just a switch in the config
-fix threading: fixed some issues in the import script
-mime encode subject if needed: thx to Retro Guys line

after i have fixed the part with the attachments, i will reimport all the messages one last time.

cheers

trw

--
Posted on def2

almost done

<code.275.3k84ni@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=436&group=rocksolid.programming#436

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (trw)
Newsgroups: rocksolid.programming
Subject: almost done
Date: Fri, 12 Jun 2020 15:00:41 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.275.3k84ni@anon.com>
References: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="11012"; mail-complaints-to="usenet@i2pn2.org"
 by: trw - Fri, 12 Jun 2020 22:00 UTC

open:
-code simplification and cleanup

closed:
-fix proper handling of attachments from imported messages
-fix date for message import
-fix catalog link in the footer, catalog is off: i thought i had to change the templates, but it is just a switch in the config
-fix threading: fixed some issues in the import script
-mime encode subject if needed: thx to Retro Guys line

Retru, do you want to test this as well ? Do you want to roll out vichan, or wait a little longer (until all the bugs are hope fully squashed) ?

cheers

trw

--
Posted on def2

Re: almost done

<c64967a9f9a5f6fc9b1625b464cd321e$1@www.novabbs.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=437&group=rocksolid.programming#437

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: almost done
Date: Sat, 13 Jun 2020 07:44 UTC
Organization: Rocksolid Light
Message-ID: <c64967a9f9a5f6fc9b1625b464cd321e$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.275.3k84ni@anon.com>
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="18965"; 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$Zj21kCOtaKJtW8lt2rq0puhzM4y51cVE1q87as7AaGLB50dNZ00W6
 by: Retro Guy - Sat, 13 Jun 2020 07:44 UTC

trw wrote:

> open:
> -code simplification and cleanup

> closed:
> -fix proper handling of attachments from imported messages
> -fix date for message import
> -fix catalog link in the footer, catalog is off: i thought i had to change the templates, but it is just a switch in the config
> -fix threading: fixed some issues in the import script
> -mime encode subject if needed: thx to Retro Guys line

It's really looking good! I haven't checked out imported messages with attachments yet, but it sounds like you have it working :)

> Retru, do you want to test this as well ? Do you want to roll out vichan, or wait a little longer (until all the bugs are hope fully squashed) ?

I would like to check it out, and eventually set one up as a node. I'm interested in seeing the nntp code (send/receive) and maybe also find some nice ideas for future stuff.

If it can be placed in a tarball or something, I'll try it out. I think it requires mysql, if I'm not mistaken.

Retro Guy

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

almost done

<code.277.1f4ryv@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=438&group=rocksolid.programming#438

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!.POSTED.127.215.126.48!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: almost done
Date: Sat, 13 Jun 2020 04:55:24 -0700
Organization: rocksolid2 (news.novabbs.com)
Message-ID: <code.277.1f4ryv@anon.com>
References: <code.100.gmepn@anon.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=f33f8ae2e5abeeaf212a8786c1ef3516a0f07c0c
Injection-Info: novabbs.com; posting-account="def.i2p"; posting-host="127.215.126.48";
logging-data="14085"; mail-complaints-to="usenet@novabbs.com"
 by: Anonymous - Sat, 13 Jun 2020 11:55 UTC
Attachments: "vichan_sync_v0.1.zip"; name="attachment" (application/zip)

>It's really looking good! I haven't checked out imported messages with attachments yet, but it sounds like you have it working :)

yes, it looks like it (you can check on def2.i2p/ts how it displays). of course all depends on getting the attachment first (so the rslight code). thats's why it's great news for me that you solved these darn inline attachments (like def3 makes).

>I would like to check it out, and eventually set one up as a node.

ok, i will upload an archive with the code (attached to this message).

>I'm interested in seeing the nntp code (send/receive) and maybe also find some nice ideas for future stuff.

well, you will see a lot of your own code :-).

the question for me is how soon you will roll out. if it is sooner, i will work on one last point first before the cleanup, which is the direct syncing between two vichan nodes, using the modified post.php. if you will wait a little longer, i will clean up the code first and than add that feature when needed.

>If it can be placed in a tarball or something, I'll >try it out. I think it requires mysql, if I'm not >mistaken.

yes, you need mysql and pdo to run vichan. if you go back to the original tinyIB code, there is an option to run with flat files. but the setup process of vichan was absolutely painless for me, so i did not really investigate further.

let me know if you need help to run the code, it is still very rough.
you will need to adapt sync.php and nntpchan.php to reflect your directories and news server settings.

cheers

trw

Attachments: "vichan_sync_v0.1.zip"; name="attachment" (application/zip)
latest code

<code.393.9xhc4@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=441&group=rocksolid.programming#441

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!def5!.POSTED.bogusentry!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: latest code
Date: Sat, 13 Jun 2020 16:21:20 -0700
Organization: def5
Message-ID: <code.393.9xhc4@anon.com>
References: <code.100.gmepn@anon.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=3ca0c89d94899557e5fc69e877799b62e134884a
Injection-Info: def5.org; posting-host="bogusentry:192.168.1.189";
logging-data="31598"; mail-complaints-to="usenet@def5.org"
 by: Anonymous - Sat, 13 Jun 2020 23:21 UTC
Attachments: vichan_sync_v0.11.zip (application/zip)

please find attached the latest code archive, the other one was missing a file. also the update concerning the attachments is included.

cheers

trw

Attachments: vichan_sync_v0.11.zip (application/zip)
Re: latest code

<c1679b2fa98bc6b358c530c3eaffccdd$1@www.novabbs.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=444&group=rocksolid.programming#444

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: latest code
Date: Sun, 14 Jun 2020 06:31 UTC
Organization: Rocksolid Light
Message-ID: <c1679b2fa98bc6b358c530c3eaffccdd$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.393.9xhc4@anon.com>
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="30905"; 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$X7Lq8WENiP3FPB.Zn9dDjOkjNZYfsbSyw5fXMZUtzcZskfP7m/GXi
 by: Retro Guy - Sun, 14 Jun 2020 06:31 UTC

Anonymous wrote:

> please find attached the latest code archive, the other one was missing a file. also the update concerning the attachments is included.

Thanks! I'll take a look at this in a couple of days. I'm quite curious to see how vichan is written.

Retro Guy

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

Re: latest code

<ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=448&group=rocksolid.programming#448

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: latest code
Date: Mon, 15 Jun 2020 10:07 UTC
Organization: Rocksolid Light
Message-ID: <ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.393.9xhc4@anon.com> <c1679b2fa98bc6b358c530c3eaffccdd$1@www.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="retrobbs1";
logging-data="29338"; 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$LB2aPVeJl.qjcVIcSkkv/OlotXhmXhRtNrdcA7s/GsW5rQnCjY7KK
 by: Retro Guy - Mon, 15 Jun 2020 10:07 UTC

Retro Guy wrote:

> Anonymous wrote:

>> please find attached the latest code archive, the other one was missing a file. also the update concerning the attachments is included.

> Thanks! I'll take a look at this in a couple of days. I'm quite curious to see how vichan is written.

I've downloaded and installed (on top of vichan-devel). I kept the dir structure from your zip and put it into the devel structure. Then installed (seems vichan requires php-mcrypt) but that's not listed in Requirements in the README).

Anyway, it installs easily, and I set the nntp server in config file. I then found sync.php and ran it as www-data user in the directory it's in (./debug). Not sure if I was supposed to run it, or move it elsewhere, or run it from another dir, but I ran it from there. It created the thread files in ./threads fine (nice).

What I don't know is how to I tie those to the boards in vichan? So, what did I do wrong, or what have I not done yet that I need to do? :)

Thanks,

Retro Guy

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

Re: latest code

<c1745706afd0f31fd468c5bced04ec4b@def4>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=450&group=rocksolid.programming#450

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <c1745706afd0f31fd468c5bced04ec4b@def4>
Subject: Re: latest code
Date: Mon, 15 Jun 2020 19:39:06+0000
Organization: def5
In-Reply-To: <ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com>
References: <ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Mon, 15 Jun 2020 19:39 UTC

>Then installed (seems vichan requires php-mcrypt) but that's not listed in Requirements in the README).

Strange, either I had that installed already, or there is something different between our installations. I don't recall having to do that.

>Anyway, it installs easily, and I set the nntp server in config file.

Good, that was the same for me, installation was easy.

>I then found sync.php and ran it as www-data user in the directory it's in (./debug). Not sure if I was supposed to run it, or move it elsewhere, or run it from another dir, but I ran it from there.

That's fine. It can run from anywhere, and you can run it from cli or call it from cron.
Did you put gpost.php in the webroot (next to post.php) ?

> It created the thread files in ./threads fine (nice).

There should also be a dir named "watermarks". If not, something went wrong.

>What I don't know is how to I tie those to the boards in vichan?

Each board needs to be set in its config file, and there you make the connection to the newsgroup.
Also in sync.php there is an array called "translation" which needs to be set (I will take that from the central config later).

> So, what did I do wrong, or what have I not done yet that I need to do? :)

I would suggest to start with one group only:
-set it in the central config
-set it in the board config
-set it in sync.php
and let run again.

What is the content of error.log and application.log ?

cheers

trw

Posted on def4

Re: latest code

<91b46b45ec5781f78926ba70629703c6$1@www.novabbs.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=451&group=rocksolid.programming#451

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: latest code
Date: Tue, 16 Jun 2020 00:53 UTC
Organization: Rocksolid Light
Message-ID: <91b46b45ec5781f78926ba70629703c6$1@www.novabbs.com>
References: <ada122da5599bf977966c652e9b89bdc$1@www.novabbs.com> <c1745706afd0f31fd468c5bced04ec4b@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="32663"; 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$/zAUB4VY/Xpu9Tgau.INseXL5zIZGrsQ0ybTMUSWdWeFnRV./Q.HK
 by: Retro Guy - Tue, 16 Jun 2020 00:53 UTC

anon wrote:

>>I then found sync.php and ran it as www-data user in the directory it's in (./debug). Not sure if I was supposed to run it, or move it elsewhere, or run it from another dir, but I ran it from there.

> That's fine. It can run from anywhere, and you can run it from cli or call it from cron.
> Did you put gpost.php in the webroot (next to post.php) ?

Yes, I left the structure the same and copied the files into the distribution.

>> It created the thread files in ./threads fine (nice).

> There should also be a dir named "watermarks". If not, something went wrong.

It is there, and populated with files for each group.

>>What I don't know is how to I tie those to the boards in vichan?

> Each board needs to be set in its config file, and there you make the connection to the newsgroup.
> Also in sync.php there is an array called "translation" which needs to be set (I will take that from the central config later).

I see the translation array in gpost.php, but not in sync.php.

>> So, what did I do wrong, or what have I not done yet that I need to do? :)

> I would suggest to start with one group only:
> -set it in the central config
> -set it in the board config
> -set it in sync.php
> and let run again.

I've been trying this but I'm not sure how to 'set it'. I've tried several variations on adding it to the array in each, but nothing changes. sync.php builds stuff, but I don't see how it gets put into the db.

Can you list an example line to add/change for each file?

> What is the content of error.log and application.log ?

Nothing in error.log.

application.log looks ok:

no index found for group rocksolid.shared.test, building it
building index for group rocksolid.shared.test
update for group rocksolid.shared.testsolid.shared.testest
syncing message # 1 from group rocksolid.nodes

Obviously, I don't understand how it all ties together, but I'd like to get it working if possible.

Retro Guy

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

Re: latest code

<69e9d2b74567e5f225e053e44e5bcd5a@def4>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=452&group=rocksolid.programming#452

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <69e9d2b74567e5f225e053e44e5bcd5a@def4>
Subject: Re: latest code
Date: Tue, 16 Jun 2020 07:01:09+0000
Organization: def5
In-Reply-To: <91b46b45ec5781f78926ba70629703c6$1@www.novabbs.com>
References: <91b46b45ec5781f78926ba70629703c6$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Tue, 16 Jun 2020 07:01 UTC

>I see the translation array in gpost.php, but not in sync.php.

yes, sorry, this is what i meant.

>I've been trying this but I'm not sure how to 'set it'. I've
>tried several variations on adding it to the array in each,
>but nothing changes.

i will post a config example.

the way a synced article gets inserted in the db is that sync.php calls gpost.php and tells it to.
if you don't see any error message in application.log this should have worked already.

Posted on def4

Re: latest code

<8b7c90572ddb757974fd282abf015f30@def4>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=453&group=rocksolid.programming#453

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <8b7c90572ddb757974fd282abf015f30@def4>
Subject: Re: latest code
Date: Thu, 18 Jun 2020 14:34:24+0000
Organization: def5
In-Reply-To: <69e9d2b74567e5f225e053e44e5bcd5a@def4>
References: <69e9d2b74567e5f225e053e44e5bcd5a@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 18 Jun 2020 14:34 UTC

this is the relevant part of the central config file (./inc/config.php):

$config['nntpchan'] = array();

// Enable NNTPChan integration
$config['nntpchan']['enabled'] = true;

// NNTP server
$config['nntpchan']['server'] = "192.168.1.1:1119";
$config['nntpchan']['name'] = "username";
$config['nntpchan']['password'] = "password";

// Global dispatch array. Add your boards to it to enable them. Please make
// sure that this setting is set in a global context.
$config['nntpchan']['dispatch'] = array(
'rocksolid.nodes' => 'n',
'rocksolid.nodes.help' => 'nh',
'rocksolid.nodes.announce' => 'na',
'rocksolid.shared.encryption' => 'ec',
'rocksolid.shared.entertainment' => 'et',
'rocksolid.shared.freenet' => 'f',
'rocksolid.shared.general' => 'g',
'rocksolid.shared.hacking' => 'ha',
'rocksolid.shared.helpdesk' => 'he',
'rocksolid.shared.i2p' => 'i',
'rocksolid.shared.linux' => 'l',
'rocksolid.shared.news' => 'ne',
'rocksolid.shared.offtopic' => 'b',
'rocksolid.programming' => 'code',
'rocksolid.shared.rocksolid' => 'r',
'rocksolid.shared.security' => 'opsec',
'rocksolid.social' => 'soc',
'rocksolid.shared.test' => 'ts',
'rocksolid.shared.tor' => 'to',
); // 'overchan.test' => 'test'

// Trusted peer - an IP address of your NNTPChan instance. This peer will have
// increased capabilities, eg.: will evade spamfilter.
$config['nntpchan']['trusted_peer'] = '127.0.0.1';

// Salt for message ID generation. Keep it long and secure.
$config['nntpchan']['salt'] = 'something_very_long_and_radom';

// A local message ID domain. Make sure to change it.
$config['nntpchan']['domain'] = 'yourdomain.org';

the server data of the nntp server ( $config['nntpchan']['server'], $config['nntpchan']['name'] and
$config['nntpchan']['password'])
is not actually important, since the posting works differently now (by dropping the message in the outspool), but i set them regardless.

Posted on def4

Re: latest code

<3c06c3ee2ecf19d813bc6758b2d7781a@def4>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=454&group=rocksolid.programming#454

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <3c06c3ee2ecf19d813bc6758b2d7781a@def4>
Subject: Re: latest code
Date: Thu, 18 Jun 2020 14:41:06+0000
Organization: def5
In-Reply-To: <8b7c90572ddb757974fd282abf015f30@def4>
References: <8b7c90572ddb757974fd282abf015f30@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 18 Jun 2020 14:41 UTC

and this is the relevant part of the local config (so, for a board called "ts" this is ./ts/config.php):

$config['nntpchan'] = array();

// Enable NNTPChan integration
$config['nntpchan']['enabled'] = true;

// NNTP server
$config['nntpchan']['server'] = "localhost:10119";

// Trusted peer - an IP address of your NNTPChan instance. This peer will have
// increased capabilities, eg.: will evade spamfilter.
$config['nntpchan']['trusted_peer'] = '127.0.0.1';

// Salt for message ID generation. Keep it long and secure.
$config['nntpchan']['salt'] = 'something_long_and_random';

// A local message ID domain. Make sure to change it.
$config['nntpchan']['domain'] = 'yourdomain.org';

// An NNTPChan group name.
// Please set this setting in your board/config.php, not globally.
$config['nntpchan']['group'] = 'rocksolid.shared.test';
again, this one here ($config['nntpchan']['server']) does not do anything, but I set it regardless.

if you ran sync.php and it put out "syncing message yxz" and there is no error message, but the message is not visible, i would suspect that it was silently dropped because something was not defined.

let me know if that helped.

cheers

trw

Posted on def4

Re: latest code

<2fef2df466d99579a486a92bde3edacc@def4>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=455&group=rocksolid.programming#455

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <2fef2df466d99579a486a92bde3edacc@def4>
Subject: Re: latest code
Date: Fri, 19 Jun 2020 15:50:42+0000
Organization: def5
In-Reply-To: <3c06c3ee2ecf19d813bc6758b2d7781a@def4>
References: <3c06c3ee2ecf19d813bc6758b2d7781a@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Fri, 19 Jun 2020 15:50 UTC

and the most likely reason why this did not work is that you need to adapt the server settings in the file sync.php to reflect yours, i think i forgot to mention before, sorry.
it is in line 398.

cheers

trw

--
Posted on def4

Re: latest code

<7f81bdfd1a3bba256e98c75c4a5f9639$1@www.novabbs.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=473&group=rocksolid.programming#473

  copy link   Newsgroups: rocksolid.programming
Path: rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: reshmakavi1997@gmail.com (reshmakavi)
Newsgroups: rocksolid.programming
Subject: Re: latest code
Date: Wed, 23 Sep 2020 09:02:21 +0000
Organization: novaBBS
Message-ID: <7f81bdfd1a3bba256e98c75c4a5f9639$1@www.novabbs.com>
References: <3c06c3ee2ecf19d813bc6758b2d7781a@def4> <2fef2df466d99579a486a92bde3edacc@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="29704"; 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
X-Rslight-Site: $2y$10$07LxCbrzrcc0IKQxlYgLa.OrysOtk8Ohrh9CpJLsC/7dcS3TrhJ5.
 by: reshmakavi - Wed, 23 Sep 2020 09:02 UTC

Interesting thread....
--
Posted on: novaBBS
www.novabbs.com

vichan to do list

<code.100.gmepn@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=704&group=rocksolid.programming#704

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: vichan to do list
Date: Wed, 27 May 2020 15:03:30 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="16334"; mail-complaints-to="usenet@i2pn2.org"
 by: Anonymous - Wed, 27 May 2020 22:03 UTC

-fix date for message import
-fix proper handling of attachments from imported messages
-fix catalog link in the footer, catalog is off

threads

<code.101.3pc5kd@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=705&group=rocksolid.programming#705

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: threads
Date: Thu, 28 May 2020 02:55:52 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.101.3pc5kd@anon.com>
References: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="31306"; mail-complaints-to="usenet@i2pn2.org"
 by: Anonymous - Thu, 28 May 2020 09:55 UTC

-fix threading

subject

<code.103.43ieq1@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=707&group=rocksolid.programming#707

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: subject
Date: Sat, 30 May 2020 08:43:42 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.103.43ieq1@anon.com>
References: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="27626"; mail-complaints-to="usenet@i2pn2.org"
 by: Anonymous - Sat, 30 May 2020 15:43 UTC

-mime encode subject if needed

Re: subject

<724b2a6ca4773b4599b3bed5ce70ea59$1@nyccgjh5cjapsf7frrhxqw73gb5hxj2ucau72ztn2oenxwetxr5q.b32.i2p>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=708&group=rocksolid.programming#708

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@example.com (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: subject
Date: Sun, 31 May 2020 00:04 UTC
Organization: rslight Debian test site
Message-ID: <724b2a6ca4773b4599b3bed5ce70ea59$1@nyccgjh5cjapsf7frrhxqw73gb5hxj2ucau72ztn2oenxwetxr5q.b32.i2p>
References: <code.100.gmepn@anon.com> <code.103.43ieq1@anon.com>
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="24165"; 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 i2pwall.i2p
X-Rslight-Site: $2y$10$u74kuqHGoTgH24XksJkAGOt5lJSLinIUwBe7XYI7E7Er/UKc4vdVC
 by: Retro Guy - Sun, 31 May 2020 00:04 UTC

I use the method shown here:

$ cat test.php
<?php
echo "Subject: ".mb_encode_mimeheader(quoted_printable_decode($argv[1]))."rn";
?>

$ php ./test.php Unnecessary
Subject: Unnecessary
$ php ./test.php измена
Subject: =?UTF-8?B?0LjQt9C80LXQvdCw?=
$ php ./test.php "High измена"
Subject: High =?UTF-8?B?0LjQt9C80LXQvdCw?=

--
Posted on: rslight Debian test site
nyccgjh5cjapsf7frrhxqw73gb5hxj2ucau72ztn2oenxwetxr5q.b32.i2p

Re: subject

<86ea765f916bd87a126e3362f80b8c45$1@www.novabbs.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=709&group=rocksolid.programming#709

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: subject
Date: Sun, 31 May 2020 01:11 UTC
Organization: Rocksolid Light
Message-ID: <86ea765f916bd87a126e3362f80b8c45$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.103.43ieq1@anon.com> <724b2a6ca4773b4599b3bed5ce70ea59$1@nyccgjh5cjapsf7frrhxqw73gb5hxj2ucau72ztn2oenxwetxr5q.b32.i2p>
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="31277"; 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$Mpj9zSgwE6TlMJR4hFY1FuENEPqNKkc/zSBA0e/UHqwcH4IIF9lmC
 by: Retro Guy - Sun, 31 May 2020 01:11 UTC

Retro Guy wrote:

> I use the method shown here:

> $ cat test.php
> <?php
> echo "Subject: ".mb_encode_mimeheader(quoted_printable_decode($argv[1]))."rn";
> ?>

> $ php ./test.php Unnecessary
> Subject: Unnecessary
> $ php ./test.php измена
> Subject: =?UTF-8?B?0LjQt9C80LXQvdCw?=
> $ php ./test.php "High измена"
> Subject: High =?UTF-8?B?0LjQt9C80LXQvdCw?=

The above message is on my test site, but not on def2...

Retro Guy

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

Re: subject

<b2695293103cb8f20dcaf1a677372cfb$1@www.novabbs.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=710&group=rocksolid.programming#710

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: subject
Date: Sun, 31 May 2020 01:39 UTC
Organization: Rocksolid Light
Message-ID: <b2695293103cb8f20dcaf1a677372cfb$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.103.43ieq1@anon.com> <724b2a6ca4773b4599b3bed5ce70ea59$1@nyccgjh5cjapsf7frrhxqw73gb5hxj2ucau72ztn2oenxwetxr5q.b32.i2p> <86ea765f916bd87a126e3362f80b8c45$1@www.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="retrobbs1";
logging-data="2021"; 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$IdyH9os2sjk79/SJ30Su5uVpul52pQXRkp/ZN97tb./MBLo1dw6WW
 by: Retro Guy - Sun, 31 May 2020 01:39 UTC

Retro Guy wrote:

> Retro Guy wrote:

>> I use the method shown here:

>> $ cat test.php
>> <?php
>> echo "Subject: ".mb_encode_mimeheader(quoted_printable_decode($argv[1]))."rn";
>> ?>

>> $ php ./test.php Unnecessary
>> Subject: Unnecessary
>> $ php ./test.php измена
>> Subject: =?UTF-8?B?0LjQt9C80LXQvdCw?=
>> $ php ./test.php "High измена"
>> Subject: High =?UTF-8?B?0LjQt9C80LXQvdCw?=

> The above message is on my test site, but not on def2...

BTW, I have my test site using the same server and b32.i2p address as def2 uses for upstream. I wanted to duplicate as closely as possible. Also to note, the upstream server (i2p2n) is not local to me, so I'm not syncing with a server in the same location, i2pn2 is a remote leased server and my test server is a local to me vm.

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

Re: subject

<e4d11ff7b952f8044f638f70c05fecf2@def4>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=711&group=rocksolid.programming#711

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <e4d11ff7b952f8044f638f70c05fecf2@def4>
Subject: Re: subject
Date: Sun, 31 May 2020 14:21:49+0000
Organization: def5
In-Reply-To: <b2695293103cb8f20dcaf1a677372cfb$1@www.novabbs.com>
References: <b2695293103cb8f20dcaf1a677372cfb$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Sun, 31 May 2020 14:21 UTC

>The above message is on my test site, but not on def2...

yeah, saw that. it is on neither side of def2. seems linked to the group (although the group as such is displayed again on rslight, but not social).

Posted on def4

status update

<code.109.12wt7t@anon.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=713&group=rocksolid.programming#713

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: status update
Date: Mon, 01 Jun 2020 14:17:28 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.109.12wt7t@anon.com>
References: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="3623"; mail-complaints-to="usenet@i2pn2.org"
 by: Anonymous - Mon, 1 Jun 2020 21:17 UTC

open:

-fix date for message import
-fix proper handling of attachments from imported messages

closed:
-fix catalog link in the footer, catalog is off: i thought i had to change the templates, but it is just a switch in the config
-fix threading: fixed some issues in the import script
-mime encode subject if needed: thx to Retro Guys line
Posted on def2.i2p

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor