Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"In matrimony, to hesitate is sometimes to be saved." -- Butler


devel / Programming / Re: 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: status update

<7b8221a4b4800a8ca2e62aa49f66eb72$1@rslight.i2p>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Tue, 02 Jun 2020 17:41:51 -0700
Organization: Rocksolid
Lines: 20
Message-ID: <7b8221a4b4800a8ca2e62aa49f66eb72$1@rslight.i2p>
References: <code.100.gmepn@anon.com> <code.109.12wt7t@anon.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="11058"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
 by: Retro Guy - Wed, 3 Jun 2020 00:41 UTC

Anonymous wrote:

> 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

This mod will require php-mbstring. Just mentioning here so you know to list
that if you ever need to list dependencies.

Retro Guy

Re: status update

<92b006323f451cbcb0e66bade11eb0b0$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Wed, 3 Jun 2020 07:15 UTC
Organization: Rocksolid Light
Message-ID: <92b006323f451cbcb0e66bade11eb0b0$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.109.12wt7t@anon.com> <7b8221a4b4800a8ca2e62aa49f66eb72$1@rslight.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="21866"; 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$1u1JRlqJywetOhKpWhtpXutOs8UylZZ3TOcJUGk64Ia0bRKz1FoYm
 by: Retro Guy - Wed, 3 Jun 2020 07:15 UTC

I've written a script that will pull an article, and convert it to the output I think you need for vichan. I can add this to the nntp server, so you can send a command like:

GROUP rocksolid.shared.test
VICHAN 90

and the article will be sent in a serialized format. This is necessary to transfer the data over tcpip:

$ ./vichan_send.php rocksolid.shared.test 90
O:11:"messageType":2:{s:6:"header";O:10:"headerType":26:{s:6:"number";N;s:2:"id";s:24:"<ts.338.39ms37@anon.com>";s:4:"from";s:15:"poster@anon.com";s:4:"name";s:9:"Anonymous";s:7:"subject";s:3:"yes";s:10:"newsgroups";s:21:"rocksolid.shared.test";s:8:"followup";N;s:4:"date";i:1590584048;s:11:"date_thread";N;s:12:"organization";s:16:"i2pn2 (i2pn.org)";s:10:"xnoarchive";N;s:10:"references";a:1:{i:0;s:59:"<635faa159efe9999f6f2b469d70207e6$1@z5bqfv5v75kxy7pj.onion>";}s:13:"bestreference";N;s:25:"content_transfer_encoding";s:4:"8bit";s:12:"mime_version";N;s:12:"content_type";a:1:{i:0;s:10:"text/plain";}s:20:"content_type_charset";a:1:{i:0;s:5:"utf-8";}s:17:"content_type_name";a:1:{i:0;s:7:"unnamed";}s:21:"content_type_boundary";N;s:19:"content_type_format";a:1:{i:0;s:5:"fixed";}s:7:"answers";N;s:8:"isAnswer";b:0;s:8:"username";s:6:"poster";s:10:"user_agent";N;s:7:"isReply";N;s:10:"threadsize";N;}s:4:"body";a:1:{i:0;s:18:"all still working
";}}

Then, you can '$class_i_want = $unserialize($response);' and you should have your class containing the message info. Is this of any use?

Retro Guy

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

Re: status update

<0105d4dfd97554becb98ebbc21c0df55$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Wed, 3 Jun 2020 09:27 UTC
Organization: Rocksolid Light
Message-ID: <0105d4dfd97554becb98ebbc21c0df55$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.109.12wt7t@anon.com> <7b8221a4b4800a8ca2e62aa49f66eb72$1@rslight.i2p> <92b006323f451cbcb0e66bade11eb0b0$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="5978"; 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$bz/FVHhwGo7Wgb1/cXF7v.PCxK108QkOqpm1vFiYi8mGO0V2i/WzK
 by: Retro Guy - Wed, 3 Jun 2020 09:27 UTC

I've applied to my test nntp server. You should be able to test here:

cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.shared.test
211 170 1 170 rocksolid.shared.test
vichan 90
O:11:"messageType":2:{s:6:"header";O:10:"headerType":26:{s:6:"number";N;s:2:"id";s:24:"<ts.338.39ms37@anon.com>";s:4:"from";s:15:"poster@anon.com";s:4:"name";s:9:"Anonymous";s:7:"subject";s:3:"yes";s:10:"newsgroups";s:21:"rocksolid.shared.test";s:8:"followup";N;s:4:"date";i:1590584048;s:11:"date_thread";N;s:12:"organization";s:16:"i2pn2 (i2pn.org)";s:10:"xnoarchive";N;s:10:"references";a:1:{i:0;s:59:"<635faa159efe9999f6f2b469d70207e6$1@z5bqfv5v75kxy7pj.onion>";}s:13:"bestreference";N;s:25:"content_transfer_encoding";s:4:"8bit";s:12:"mime_version";N;s:12:"content_type";a:1:{i:0;s:10:"text/plain";}s:20:"content_type_charset";a:1:{i:0;s:5:"utf-8";}s:17:"content_type_name";a:1:{i:0;s:7:"unnamed";}s:21:"content_type_boundary";N;s:19:"content_type_format";a:1:{i:0;s:5:"fixed";}s:7:"answers";N;s:8:"isAnswer";b:0;s:8:"username";s:6:"poster";s:10:"user_agent";N;s:7:"isReply";N;s:10:"threadsize";N;}s:4:"body";a:1:{i:0;s:18:"all still working
";}}
quit
205 closing connection - goodbye!

You will need to take that output and run it through 'unserialize($data);'

Right now I don't check to see if the article exists, just testing if this will be useful or helpful for you. If it is, I'll clean up the command and add error checking, etc.

Retro Guy

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

Re: status update

<de82dbc861dba21f324a4940ee9214cc@def4>

  copy mid

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

  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: <de82dbc861dba21f324a4940ee9214cc@def4>
Subject: Re: status update
Date: Wed, 03 Jun 2020 11:15:21+0000
Organization: def5
In-Reply-To: <92b006323f451cbcb0e66bade11eb0b0$1@www.novabbs.com>
References: <92b006323f451cbcb0e66bade11eb0b0$1@www.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Wed, 3 Jun 2020 11:15 UTC

>I've written a script that will pull an article, and convert it to the output I think you need for vichan. I can add this to the nntp server, so you can send a command like:

this is more or less what i began to write as well :-).
i believe though it is best to not change the severs answers as such, but to make any necessary conversion for vichan on the clients side after the message has been obtained using the regular commands. this way you could use any news server to pull messages from, not just one that is adapted for the purpose.

Posted on def4

Re: status update

<c18e5f4529b30c4c4a1893dde93b9bc5@def4>

  copy mid

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

  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: <c18e5f4529b30c4c4a1893dde93b9bc5@def4>
Subject: Re: status update
Date: Wed, 03 Jun 2020 11:19:06+0000
Organization: def5
In-Reply-To: <de82dbc861dba21f324a4940ee9214cc@def4>
References: <de82dbc861dba21f324a4940ee9214cc@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Wed, 3 Jun 2020 11:19 UTC

>to make any necessary conversion for vichan on the clients side

and this is all the more true because for vichan to build threads all answers need to have the op as the first reference, which is not respected by def3 and def4 when composing the messages. so some internal logic needs to implemented anyway on the clients side for this to work.

Posted on def4

Re: status update

<c490c66d1442203098caee9055f96e24$1@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Wed, 3 Jun 2020 10:03 UTC
Organization: Rocksolid Light
Message-ID: <c490c66d1442203098caee9055f96e24$1@news.novabbs.com>
References: <92b006323f451cbcb0e66bade11eb0b0$1@www.novabbs.com> <de82dbc861dba21f324a4940ee9214cc@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="10470"; 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$.pxPqRGQ3ew2nylyT3OAOOdazxYFm8eOXcddFSxAiVQi2xyWvI2Jq
 by: Retro Guy - Wed, 3 Jun 2020 10:03 UTC

anon wrote:

>>I've written a script that will pull an article, and convert it to the output I think you need for vichan. I can add this to the nntp server, so you can send a command like:

> this is more or less what i began to write as well :-).
> i believe though it is best to not change the severs answers as such, but to make any necessary conversion for vichan on the clients side after the message has been obtained using the regular commands. this way you could use any news server to pull messages from, not just one that is adapted for the purpose.

Sounds good. I can send you the script if you want it. I'm not currently at a computer where I have access to it but I can send it tomorrow. Just let me know.

Also, I do plan to add features to the rslight nntp server that handles things like file and private message transfer (for admins), and auto-update stuff (if authenticated by pgp), so a vichan command is no problem. But the idea that vichan can use any nntp server is a good idea :)

Retro Guy

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

Re: status update

<84127b57d4546bb615adb477327c0001$1@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Wed, 3 Jun 2020 10:05 UTC
Organization: Rocksolid Light
Message-ID: <84127b57d4546bb615adb477327c0001$1@news.novabbs.com>
References: <de82dbc861dba21f324a4940ee9214cc@def4> <c18e5f4529b30c4c4a1893dde93b9bc5@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="11004"; 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$QGgE87UcOkDicI0G8D6Fn.tAOwW4PIdYKYuyiAyj1Ykho26oi4tA.
 by: Retro Guy - Wed, 3 Jun 2020 10:05 UTC

anon wrote:

>>to make any necessary conversion for vichan on the clients side

> and this is all the more true because for vichan to build threads all answers need to have the op as the first reference, which is not respected by def3 and def4 when composing the messages. so some internal logic needs to implemented anyway on the clients side for this to work.

I believe rslight lists the first reference (that it's aware of) in the References: header. I didn't write that code, but I think it works that way.

Retro Guy

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

Re: status update

<00a4fb31e64d1274ca61557968b69df0@def4>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!i2pn.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <00a4fb31e64d1274ca61557968b69df0@def4>
Subject: Re: status update
Date: Wed, 03 Jun 2020 11:41:17+0000
Organization: def5
In-Reply-To: <84127b57d4546bb615adb477327c0001$1@news.novabbs.com>
References: <84127b57d4546bb615adb477327c0001$1@news.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Wed, 3 Jun 2020 11:41 UTC

>I believe rslight lists the first reference (that it's aware of) in the References: header. I didn't write that code, but I think it works that way.

yes, rslight does this, but not fudforum and bbs. so all messages need to checked and modified (if necessary), before they can be posted to vichan.
of course you could also change this on fudforum and bbs, but it is more work, and you would have to redo this each time you adopt a new software. better to do this on the side of the software that needs it, i think.

Posted on def4

Re: status update

<e1b3f0ea3a75d079f53437bd27cda2af@def4>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!i2pn.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <e1b3f0ea3a75d079f53437bd27cda2af@def4>
Subject: Re: status update
Date: Thu, 04 Jun 2020 01:43:41+0000
Organization: def5
In-Reply-To: <00a4fb31e64d1274ca61557968b69df0@def4>
References: <00a4fb31e64d1274ca61557968b69df0@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 4 Jun 2020 01:43 UTC

>open:

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

the 2nd one turns out to be harder than it looked. only to parse out the textparts from a multipart message still fails too often, partly due to the many different ways clients use to compose the message body i guess. damn. that sure was easy with message_read from newsportal...
found some libs on github for email parsing (which should be basically the same thing), but they are either not functional or with a lot of deps again. damn...
guess i will have to implement this by myself, before i can even think about detecting and decoding attachments.

any thoughts ?

trw

Posted on def4

Re: status update

<888808f25de8a9cd83de13f1d2432d1b$1@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Thu, 4 Jun 2020 05:53 UTC
Organization: Rocksolid Light
Message-ID: <888808f25de8a9cd83de13f1d2432d1b$1@news.novabbs.com>
References: <00a4fb31e64d1274ca61557968b69df0@def4> <e1b3f0ea3a75d079f53437bd27cda2af@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="29510"; 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$726cej1FRPyINNpwQmFYoOLtUgLVxshJY4ECPAmDtKd52mU21lEsm
 by: Retro Guy - Thu, 4 Jun 2020 05:53 UTC

anon wrote:

>>open:

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

> the 2nd one turns out to be harder than it looked. only to parse out the textparts from a multipart message still fails too often, partly due to the many different ways clients use to compose the message body i guess. damn. that sure was easy with message_read from newsportal...
> found some libs on github for email parsing (which should be basically the same thing), but they are either not functional or with a lot of deps again. damn...
> guess i will have to implement this by myself, before i can even think about detecting and decoding attachments.

> any thoughts ?

I'll send you my script when I get home later.
It's basically message_read separate from newsportal

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

Re: status update

<ad8de33b502d2648cac41b56bd842458$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Thu, 4 Jun 2020 08:12 UTC
Organization: Rocksolid Light
Message-ID: <ad8de33b502d2648cac41b56bd842458$1@www.novabbs.com>
References: <00a4fb31e64d1274ca61557968b69df0@def4> <e1b3f0ea3a75d079f53437bd27cda2af@def4> <888808f25de8a9cd83de13f1d2432d1b$1@news.novabbs.com>
Mime-Version: 1.0
Content-Type: multipart/mixed;boundary="------------5ed8acf1319980.87545718"
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="13535"; mail-complaints-to="usenet@i2pn2.org"
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$Iw4T6qiLEu9uhwUy5U.kc.MpVqDoeJI1zqx2ZpwpEgZyZqQEWJrha
 by: Retro Guy - Thu, 4 Jun 2020 08:12 UTC
Attachments: vichan.php.txt (text/plain)

Retro Guy wrote:

> anon wrote:

>>>open:

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

>> the 2nd one turns out to be harder than it looked. only to parse out the textparts from a multipart message still fails too often, partly due to the many different ways clients use to compose the message body i guess. damn. that sure was easy with message_read from newsportal...
>> found some libs on github for email parsing (which should be basically the same thing), but they are either not functional or with a lot of deps again. damn...
>> guess i will have to implement this by myself, before i can even think about detecting and decoding attachments.

>> any thoughts ?

> I'll send you my script when I get home later.
> It's basically message_read separate from newsportal

It's attached here. It's all the code necessary from rslight to produce the output, but it is not linked to the site, so it can be run independently.

If you want to use it, it needs a little cleaning up as the spool location is hard coded, and probably a couple of other things.

Retro Guy

Attachments: vichan.php.txt (text/plain)
Re: status update

<d6bfa13b54cd14c2db4d2d05edc28d4a@def4>

  copy mid

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

  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: <d6bfa13b54cd14c2db4d2d05edc28d4a@def4>
Subject: Re: status update
Date: Thu, 04 Jun 2020 10:17:26+0000
Organization: def5
In-Reply-To: <888808f25de8a9cd83de13f1d2432d1b$1@news.novabbs.com>
References: <888808f25de8a9cd83de13f1d2432d1b$1@news.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 4 Jun 2020 10:17 UTC

>It's basically message_read separate from newsportal

you mean i could just include this without all the rest of newsportal (like a standalone function or class) ? that would be wonderful.

cheers

trw

Posted on def4

Re: status update

<4416d1e5c02fd178184f402f82b565f7$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Thu, 4 Jun 2020 09:10 UTC
Organization: Rocksolid Light
Message-ID: <4416d1e5c02fd178184f402f82b565f7$1@www.novabbs.com>
References: <888808f25de8a9cd83de13f1d2432d1b$1@news.novabbs.com> <d6bfa13b54cd14c2db4d2d05edc28d4a@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="21263"; 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$XaXiYGChI1Jp1fW2nQlO5O3sbR8X5DvBoIu.wFY5RXsnPvd99E/Di
 by: Retro Guy - Thu, 4 Jun 2020 09:10 UTC

anon wrote:

>>It's basically message_read separate from newsportal

> you mean i could just include this without all the rest of newsportal (like a standalone function or class) ? that would be wonderful.

That "should" be how it works. I ran it numerous times on my test site, and also ran it quite a few times through the nntp server, and I have not noticed any issues.

Retro Guy

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

Re: status update

<4fd91fe3e28e13e7a2a61852cc48e856$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: status update
Date: Thu, 4 Jun 2020 09:27 UTC
Organization: Rocksolid Light
Message-ID: <4fd91fe3e28e13e7a2a61852cc48e856$1@www.novabbs.com>
References: <888808f25de8a9cd83de13f1d2432d1b$1@news.novabbs.com> <d6bfa13b54cd14c2db4d2d05edc28d4a@def4> <4416d1e5c02fd178184f402f82b565f7$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="23656"; 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$MHUPx3IMEUbgBvQRmb5mWucvPfQ4hOmlPZtYv1IKaHl9hJnAUvO9K
 by: Retro Guy - Thu, 4 Jun 2020 09:27 UTC

Retro Guy wrote:

> anon wrote:

>>>It's basically message_read separate from newsportal

>> you mean i could just include this without all the rest of newsportal (like a standalone function or class) ? that would be wonderful.

> That "should" be how it works. I ran it numerous times on my test site, and also ran it quite a few times through the nntp server, and I have not noticed any issues.

I should say I ran it as a standalone script:
$msg = shell_exec("/etc/rslight/scripts/vichan.php ".$command[1]." ".$group);

It's basically 'vichan.php <article_number> <group>' Right now it echos a serialzed output, that can easily be changed back to the class with unserialize(...);

Again, if you do this you'll need to not hardcode the directories, etc.

Retro Guy

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

Re: vichan to do list

<da6b24f5d7c4dd19a8a2d16f33dff6f9@def4>

  copy mid

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

  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: <da6b24f5d7c4dd19a8a2d16f33dff6f9@def4>
Subject: Re: vichan to do list
Date: Thu, 04 Jun 2020 11:47:38+0000
Organization: def5
In-Reply-To: <code.100.gmepn@anon.com>
References: <code.100.gmepn@anon.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 4 Jun 2020 11:47 UTC

>It's basically 'vichan.php <article_number> <group>' Right now it echos a serialzed output, that can easily be changed back to the class with unserialize(...);

the main thing for me is if i can get the text part of the message and the files nicely separated (bonus points for file detection and decoding of course).
what is the representation of the data when there is an attachment ?
and where can i find the script :-) ?

cheers

trw

Posted on def4

Re: vichan to do list

<e4053b06709a379d85566195b913faaa$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: vichan to do list
Date: Thu, 4 Jun 2020 10:45 UTC
Organization: Rocksolid Light
Message-ID: <e4053b06709a379d85566195b913faaa$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <da6b24f5d7c4dd19a8a2d16f33dff6f9@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="1049"; 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$H9GmedwlU8/KkSYmVsKluOJ7/9YylLTWGIXxLJ97L/jLUXIEV/5iq
 by: Retro Guy - Thu, 4 Jun 2020 10:45 UTC

anon wrote:

>>It's basically 'vichan.php <article_number> <group>' Right now it echos a serialzed output, that can easily be changed back to the class with unserialize(...);

> the main thing for me is if i can get the text part of the message and the files nicely separated (bonus points for file detection and decoding of course).
> what is the representation of the data when there is an attachment ?
> and where can i find the script :-) ?

I attached the script to an earlier post, but I just put it on the rslight download site 'vichan.php.txt'.

The output is exactly what message_read would output, just it's serialized so it's one big string. 'unserialze()' will change it back to a class. You should be able to modify it to output whatever format you want.

If I understand correctly, vichan was using the output of message_read, and you should be able to get that same output with this script. You may want another way to introduce the message to the script, but processing should be the same as in rslight.

Retro Guy

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

Re: vichan to do list

<2e515d7a51163f1bba75ee8fc75c37f3@def4>

  copy mid

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

  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: <2e515d7a51163f1bba75ee8fc75c37f3@def4>
Subject: Re: vichan to do list
Date: Thu, 04 Jun 2020 12:11:41+0000
Organization: def5
In-Reply-To: <da6b24f5d7c4dd19a8a2d16f33dff6f9@def4>
References: <da6b24f5d7c4dd19a8a2d16f33dff6f9@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 4 Jun 2020 12:11 UTC

>cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

>200 Rocksolid Light NNTP Server ready (no posting)
>group rocksolid.shared.test
>211 170 1 170 rocksolid.shared.test
>vichan 90

this gives me syntax error. but i appreciate this:

>help
>100 Sorry, can't help

lol

Posted on def4

Re: vichan to do list

<122d290ef8ebd1e4fedd20514f3aa4fc$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: vichan to do list
Date: Thu, 4 Jun 2020 10:52 UTC
Organization: Rocksolid Light
Message-ID: <122d290ef8ebd1e4fedd20514f3aa4fc$1@www.novabbs.com>
References: <da6b24f5d7c4dd19a8a2d16f33dff6f9@def4> <2e515d7a51163f1bba75ee8fc75c37f3@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="1790"; 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$dAyTTVtbd1gGFV3ZK5qs6eXC40NHMDsMbQB97LH.Mtw8.VrYHFaXS
 by: Retro Guy - Thu, 4 Jun 2020 10:52 UTC

anon wrote:

>>cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

>>200 Rocksolid Light NNTP Server ready (no posting)
>>group rocksolid.shared.test
>>211 170 1 170 rocksolid.shared.test
>>vichan 90

> this gives me syntax error. but i appreciate this:

>>help
>>100 Sorry, can't help

> lol

Oh, I removed the VICHAN command from the nntp server after you mentioned you didn't want to use different commands. I can put it back if you like.

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

Re: vichan to do list

<06c8da20301c4019b4bdd9af4afd084e$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: vichan to do list
Date: Thu, 4 Jun 2020 10:57 UTC
Organization: Rocksolid Light
Message-ID: <06c8da20301c4019b4bdd9af4afd084e$1@www.novabbs.com>
References: <da6b24f5d7c4dd19a8a2d16f33dff6f9@def4> <2e515d7a51163f1bba75ee8fc75c37f3@def4> <122d290ef8ebd1e4fedd20514f3aa4fc$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="2385"; 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$VlCvLB0p3iQu1kWL7KFAYua937727xym8wBhekEGKpQ9VcwuLf9Ui
 by: Retro Guy - Thu, 4 Jun 2020 10:57 UTC

Retro Guy wrote:

> anon wrote:

>>>cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

>>>200 Rocksolid Light NNTP Server ready (no posting)
>>>group rocksolid.shared.test
>>>211 170 1 170 rocksolid.shared.test
>>>vichan 90

>> this gives me syntax error. but i appreciate this:

>>>help
>>>100 Sorry, can't help

>> lol

> Oh, I removed the VICHAN command from the nntp server after you mentioned you didn't want to use different commands. I can put it back if you like.

Just added it back if you would like to check it out:

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.shared.test
211 176 1 176 rocksolid.shared.test
vichan 90
O:11:"messageType":2:{s:6:"header";O:10:"headerType":26:{s:6:"number";N;s:2:"id";s:24:"<ts.338.39ms37@anon.com>";s:4:"from";s:15:"poster@anon.com";s:4:"name";s:9:"Anonymous";s:7:"subject";s:3:"yes";s:10:"newsgroups";s:21:"rocksolid.shared.test";s:8:"followup";N;s:4:"date";i:1590584048;s:11:"date_thread";N;s:12:"organization";s:16:"i2pn2 (i2pn.org)";s:10:"xnoarchive";N;s:10:"references";a:1:{i:0;s:59:"<635faa159efe9999f6f2b469d70207e6$1@z5bqfv5v75kxy7pj.onion>";}s:13:"bestreference";N;s:25:"content_transfer_encoding";s:4:"8bit";s:12:"mime_version";N;s:12:"content_type";a:1:{i:0;s:10:"text/plain";}s:20:"content_type_charset";a:1:{i:0;s:5:"utf-8";}s:17:"content_type_name";a:1:{i:0;s:7:"unnamed";}s:21:"content_type_boundary";N;s:19:"content_type_format";a:1:{i:0;s:5:"fixed";}s:7:"answers";N;s:8:"isAnswer";b:0;s:8:"username";s:6:"poster";s:10:"user_agent";N;s:7:"isReply";N;s:10:"threadsize";N;}s:4:"body";a:1:{i:0;s:18:"all still working
";}}

Retro Guy

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

Re: vichan to do list

<ed10204ebad19e577282c704b398b6c6$1@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: vichan to do list
Date: Thu, 4 Jun 2020 11:02 UTC
Organization: Rocksolid Light
Message-ID: <ed10204ebad19e577282c704b398b6c6$1@www.novabbs.com>
References: <da6b24f5d7c4dd19a8a2d16f33dff6f9@def4> <2e515d7a51163f1bba75ee8fc75c37f3@def4> <122d290ef8ebd1e4fedd20514f3aa4fc$1@www.novabbs.com> <06c8da20301c4019b4bdd9af4afd084e$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="2773"; 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$MAMFziIHekGFL3vhIoLTIO9FMTnJvFgEt.wStXJ8SEiLH91R.R5Xu
 by: Retro Guy - Thu, 4 Jun 2020 11:02 UTC

Retro Guy wrote:

> Retro Guy wrote:

>> anon wrote:

>>>>cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

>>>>200 Rocksolid Light NNTP Server ready (no posting)
>>>>group rocksolid.shared.test
>>>>211 170 1 170 rocksolid.shared.test
>>>>vichan 90

>>> this gives me syntax error. but i appreciate this:

>>>>help
>>>>100 Sorry, can't help

>>> lol

>> Oh, I removed the VICHAN command from the nntp server after you mentioned you didn't want to use different commands. I can put it back if you like.

> Just added it back if you would like to check it out:

> 200 Rocksolid Light NNTP Server ready (no posting)
> group rocksolid.shared.test
> 211 176 1 176 rocksolid.shared.test
> vichan 90
> O:11:"messageType":2:{s:6:"header";O:10:"headerType":26:{s:6:"number";N;s:2:"id";s:24:"<ts.338.39ms37@anon.com>";s:4:"from";s:15:"poster@anon.com";s:4:"name";s:9:"Anonymous";s:7:"subject";s:3:"yes";s:10:"newsgroups";s:21:"rocksolid.shared.test";s:8:"followup";N;s:4:"date";i:1590584048;s:11:"date_thread";N;s:12:"organization";s:16:"i2pn2 (i2pn.org)";s:10:"xnoarchive";N;s:10:"references";a:1:{i:0;s:59:"<635faa159efe9999f6f2b469d70207e6$1@z5bqfv5v75kxy7pj.onion>";}s:13:"bestreference";N;s:25:"content_transfer_encoding";s:4:"8bit";s:12:"mime_version";N;s:12:"content_type";a:1:{i:0;s:10:"text/plain";}s:20:"content_type_charset";a:1:{i:0;s:5:"utf-8";}s:17:"content_type_name";a:1:{i:0;s:7:"unnamed";}s:21:"content_type_boundary";N;s:19:"content_type_format";a:1:{i:0;s:5:"fixed";}s:7:"answers";N;s:8:"isAnswer";b:0;s:8:"username";s:6:"poster";s:10:"user_agent";N;s:7:"isReply";N;s:10:"threadsize";N;}s:4:"body";a:1:{i:0;s:18:"all still working
> ";}}

> Retro Guy

This calls the vichan.php script I put up for download, and sends out the result in reply to the ViCHAN command. This command is not in the nntp.php I have on the download site. If you want it I'll send this copy also. It will require vichan.php to be in the scripts/ directory.

It's there now as vichan_nntp.php,txt. You'll need to rename it to 'nntp.php'.

Retro Guy

Retro Guy

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

Re: vichan to do list

<35db30288bbd4e1413b8b0eaa046e842@def4>

  copy mid

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

  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: <35db30288bbd4e1413b8b0eaa046e842@def4>
Subject: Re: vichan to do list
Date: Thu, 04 Jun 2020 12:27:04+0000
Organization: def5
In-Reply-To: <code.100.gmepn@anon.com>
References: <code.100.gmepn@anon.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 4 Jun 2020 12:27 UTC

actually, the messages are mime encoded so vichan should be able to parse them if they are sent correctly. that would be the best way imo (to let vichan do the parsing).
if i could just read the code that was used to upload.

Posted on def4

Re: vichan to do list

<baaa76a54beb2e083eff23bc515a509e@def4>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!i2pn.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <baaa76a54beb2e083eff23bc515a509e@def4>
Subject: Re: vichan to do list
Date: Thu, 04 Jun 2020 13:22:25+0000
Organization: def5
In-Reply-To: <35db30288bbd4e1413b8b0eaa046e842@def4>
References: <35db30288bbd4e1413b8b0eaa046e842@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 4 Jun 2020 13:22 UTC

i will try that soon. meanwhile, here is what a request to vichans post.php looks like:

POST /post.php HTTP/1.1
Host: xxxxxxxxxxxxxxxx.onion
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://xxxxxxxxxxxxxxxx.onion/ts/index.html
Content-Type: multipart/form-data; boundary=---------------------------234374660515071969761262837861
Content-Length: 16935
Connection: keep-alive
Upgrade-Insecure-Requests: 1

-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="nke73c⛻lgoujxyd8⛆4asvr6wf92ih0t"

♦M+<Q4]#(X7J☳FLzh*q,⛻-x8'⚜☯AHac☀IS
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="q"

M3Ce⚋tv+&hA `!>1j;q
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="board"

ts
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="t82o♁kq5970cs3♠dpujmbwvz"

66873
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="page"

1
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="lastname"

-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="subject"

testing some
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="post"

Post
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="url"

♊TK@!mr2=QM4J:).0I65ny,⛳oWa
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="body"

here is some text
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="text"

2nP.e0mZ_C{,)E?Q>d!1♭b@V|J7<
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="file"; filename="woman-e1590571316950-380x214.jpg"
Content-Type: image/jpeg

<FF><D8><FF><E0>^@^PJFIF^@^A^A^A^@H^@H^@^@<FF><DB>^@C^@^H^F^F^G^F^E^H^G^G^G
^L^T^M^L^K^K^L^Y^R^S^O^T^]^Z^_^^^]^Z^\^\ $.' ",#^\^\
| |cut out the rest here
|

-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="password"

-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="hash"

9f9927bd6ca11c6b4379c17b9273cab58fadefb3
-----------------------------234374660515071969761262837861--

note all the fields that are disregarded later, just to catch spambots. :-)

if i can rewrite that with php and send it as raw http i think we might be able to use the native post.php of vichan (with some minor adaptions).
but for shortterm, i will try your script soon.

cheers

trw

Posted on def4

Re: vichan to do list

<3a7f86c13222580b23d797cffa6ad48b$1@z5bqfv5v75kxy7pj.onion>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.programming
Subject: Re: vichan to do list
Date: Thu, 4 Jun 2020 12:23 UTC
Organization: def2
Message-ID: <3a7f86c13222580b23d797cffa6ad48b$1@z5bqfv5v75kxy7pj.onion>
References: <da6b24f5d7c4dd19a8a2d16f33dff6f9@def4> <2e515d7a51163f1bba75ee8fc75c37f3@def4> <122d290ef8ebd1e4fedd20514f3aa4fc$1@www.novabbs.com> <06c8da20301c4019b4bdd9af4afd084e$1@www.novabbs.com> <ed10204ebad19e577282c704b398b6c6$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="def2";
logging-data="12627"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$/DlPU2bboJKAMfJMe4uMpOsN7HdLAnPKC3PJ6KiDPwwgXqE8UGV76
 by: anonymous - Thu, 4 Jun 2020 12:23 UTC

i have downloaded, renamed the script and put the other script in /scripts, but
vichan 1
just gives me a blank line.
--
Posted on def2
z5bqfv5v75kxy7pj.onion

Re: vichan to do list

<4342f451a0677ca814f59ec157e8efbb$1@news.novabbs.com>

  copy mid

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

  copy link   Newsgroups: rocksolid.programming
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: vichan to do list
Date: Thu, 4 Jun 2020 13:04 UTC
Organization: Rocksolid Light
Message-ID: <4342f451a0677ca814f59ec157e8efbb$1@news.novabbs.com>
References: <da6b24f5d7c4dd19a8a2d16f33dff6f9@def4> <2e515d7a51163f1bba75ee8fc75c37f3@def4> <122d290ef8ebd1e4fedd20514f3aa4fc$1@www.novabbs.com> <06c8da20301c4019b4bdd9af4afd084e$1@www.novabbs.com> <ed10204ebad19e577282c704b398b6c6$1@www.novabbs.com> <3a7f86c13222580b23d797cffa6ad48b$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="17995"; 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$rLWRJZx4YqSYC9U203uK0uyvhAdRfQ/kS8vQXkpddDBt38Cv6ws5a
 by: Retro Guy - Thu, 4 Jun 2020 13:04 UTC

anonymous wrote:

> i have downloaded, renamed the script and put the other script in /scripts, but
> vichan 1
> just gives me a blank line.

I'm not at my main computer right now, so I can't look at it. The script, vichan.php, expects to be in /etc/rslight/scripts, and expects articles in /var/spool/rslight/articles

If you run ./vichan.php 90 rocksolid.shared.test, it should output the result.

If not, it's something simple, but I'm not where I can offer more info atm. It works fine on my end (I run it on my test system).

Feel free to try the VICHAN command again on the test server nntp server.

Retro Guy

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

Re: vichan to do list

<c947b368b55b23c02687c99f8c57f52c@def4>

  copy mid

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

  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: <c947b368b55b23c02687c99f8c57f52c@def4>
Subject: Re: vichan to do list
Date: Thu, 04 Jun 2020 17:39:53+0000
Organization: def5
In-Reply-To: <4342f451a0677ca814f59ec157e8efbb$1@news.novabbs.com>
References: <4342f451a0677ca814f59ec157e8efbb$1@news.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 4 Jun 2020 17:39 UTC

>Feel free to try the VICHAN command again on the test server nntp server.

I could reach your server now, and tried it. It works well for articles with text only, for articles with attachments it returns nothing.

See this, for example:

vichan <ts.368.2r2bix@anon.com>

cheers

trw

Posted on def4


devel / Programming / Re: vichan to do list

Pages:1234
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor