Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Love isn't only blind, it's also deaf, dumb, and stupid.


rocksolid / Rocksolid Nodes Help / Re: [rslight] truncated spaces in first line of html article body

SubjectAuthor
* [rslight] truncated spaces in first line of html article bodySyber Shock
`* [rslight] truncated spaces in first line of html article bodyRetro Guy
 `* [rslight] truncated spaces in first line of html article bodySyber Shock
  `* [rslight] truncated spaces in first line of html article bodyRetro Guy
   `* [rslight] truncated spaces in first line of html article bodyRetro Guy
    +- [rslight] truncated spaces in first line of html article bodyRetro Guy
    `* [rslight] truncated spaces in first line of html article bodySyber Shock
     `* [rslight] truncated spaces in first line of html article bodyRetro Guy
      `* [rslight] truncated spaces in first line of html article bodySyber Shock
       `- [rslight] truncated spaces in first line of html article bodyRetro Guy

1
[rslight] truncated spaces in first line of html article body

<20231209110357.23156f9c@dev>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=676&group=rocksolid.nodes.help#676

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: [rslight] truncated spaces in first line of html article body
Date: Sat, 9 Dec 2023 11:03:57 -0600
Organization: To protect and to server
Message-ID: <20231209110357.23156f9c@dev>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="2443007"; posting-host="P8b6bz8rf2FooGNxzmL+ww.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:rxS8SUgRro1LFUt2IrGWZ7Vf9HpAxsgLaYWkbcxYCQg=
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MjAwMTo2N2M6ODljOjcwMjoxY2U6MWNlOmJhYmU6Ng== --
 by: Syber Shock - Sat, 9 Dec 2023 17:03 UTC

I noticed that the rslight engine truncates leading spaces in the first
line of messages in the message body display.

In the HTML element: "<div class="np_article_body"><p>" The leading
spaces are truncated after the first "<p>" tag. Thus since the space
aren't there, the CSS "whitespace: pre-wrap" shifts the first line of
each message body to the left according to the number of leading spaces
in the original article text.

You can see the offset in this example post, on the first line of the
body:

https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=6&group=alt.sources.crypto#6

More examples are evident at these links:

https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=20&group=alt.sources.crypto#20
https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=8&group=alt.sources.crypto#8
https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=5&group=alt.sources.crypto#5

Re: [rslight] truncated spaces in first line of html article body

<ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=677&group=rocksolid.nodes.help#677

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] truncated spaces in first line of html article body
Date: Sat, 9 Dec 2023 17:51:18 +0000
Organization: Rocksolid Light
Message-ID: <ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org>
References: <20231209110357.23156f9c@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3577473"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Rocksolid Light
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$W5QTOhHoX3OBJUdaNDd8geWVpp3hwoBTiH75HZzGitdfZ2Gbcoxvu
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
 by: Retro Guy - Sat, 9 Dec 2023 17:51 UTC

Syber Shock wrote:

> I noticed that the rslight engine truncates leading spaces in the first
> line of messages in the message body display.

> In the HTML element: "<div class="np_article_body"><p>" The leading
> spaces are truncated after the first "<p>" tag. Thus since the space
> aren't there, the CSS "whitespace: pre-wrap" shifts the first line of
> each message body to the left according to the number of leading spaces
> in the original article text.

> You can see the offset in this example post, on the first line of the
> body:

> https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=6&group=alt.sources.crypto#6

> More examples are evident at these links:

> https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=20&group=alt.sources.crypto#20
> https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=8&group=alt.sources.crypto#8
> https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=5&group=alt.sources.crypto#5

I get "Page not found" at all these links.

But the article I'm replying to displays, and I'm not seeing any missing characters. Maybe you're working on it right now?

--
Retro Guy

Re: [rslight] truncated spaces in first line of html article body

<20231209120857.61c03ba9@dev>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=678&group=rocksolid.nodes.help#678

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.comgw.net!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] truncated spaces in first line of html article body
Date: Sat, 9 Dec 2023 12:08:57 -0600
Organization: To protect and to server
Message-ID: <20231209120857.61c03ba9@dev>
References: <20231209110357.23156f9c@dev>
<ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="2456759"; posting-host="AHwWOSP2ENLZY9+p1wIRqA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:a9VUH0G6ycbLmr8l0jqIuiYml4jNKE1fOoAWfhC66XA=
X-TOR-Router: sha256:MTkyLjQyLjExNi4yNA== --
X-Notice: Filtered by postfilter v. 0.9.3
 by: Syber Shock - Sat, 9 Dec 2023 18:08 UTC

On Sat, 9 Dec 2023 17:51:18 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> Syber Shock wrote:
>
> > I noticed that the rslight engine truncates leading spaces in the
> > first line of messages in the message body display.
>
> > In the HTML element: "<div class="np_article_body"><p>" The leading
> > spaces are truncated after the first "<p>" tag. Thus since the space
> > aren't there, the CSS "whitespace: pre-wrap" shifts the first line
> > of each message body to the left according to the number of leading
> > spaces in the original article text.
>
> > You can see the offset in this example post, on the first line of
> > the body:
>
> > https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=6&group=alt.sources.crypto#6
>
> > More examples are evident at these links:
>
> > https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=20&group=alt.sources.crypto#20
> > https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=8&group=alt.sources.crypto#8
> > https://rocksolid.sybershock.com/rocksolid/article-flat.php?id=5&group=alt.sources.crypto#5
>
> I get "Page not found" at all these links.
>
> But the article I'm replying to displays, and I'm not seeing any
> missing characters. Maybe you're working on it right now?
>

Sorry about that. I killed the server for a few minutes while poking
around. It is up and running now. I checked the links and they are
currently working. I won't touch anything on this end. Knock on wood.

Re: [rslight] truncated spaces in first line of html article body

<2617332fa33a019beda271370bb551ef$1@news.novabbs.org>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=679&group=rocksolid.nodes.help#679

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] truncated spaces in first line of html article body
Date: Sat, 9 Dec 2023 18:32:46 +0000
Organization: Rocksolid Light
Message-ID: <2617332fa33a019beda271370bb551ef$1@news.novabbs.org>
References: <20231209110357.23156f9c@dev>
<ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org>
<20231209120857.61c03ba9@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3580786"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5
*A|XCDf?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7
|z[.9iv^g>*8_BH0=hZt'[%)4kG|
 by: Retro Guy - Sat, 9 Dec 2023 18:32 UTC

On Sat, 9 Dec 2023 12:08:57 -0600, Syber Shock wrote:

> On Sat, 9 Dec 2023 17:51:18 +0000 retro.guy@rocksolidbbs.com (Retro Guy)
> wrote:
>
>> Syber Shock wrote:
>>
>> > I noticed that the rslight engine truncates leading spaces in the
>> > first line of messages in the message body display.
>>
>> > In the HTML element: "<div class="np_article_body"><p>" The leading
>> > spaces are truncated after the first "<p>" tag. Thus since the space
>> > aren't there, the CSS "whitespace: pre-wrap" shifts the first line of
>> > each message body to the left according to the number of leading
>> > spaces in the original article text.
>>
>> > You can see the offset in this example post, on the first line of the
>> > body:
>>
>> > https://rocksolid.sybershock.com/rocksolid/article-flat.php?
id=6&group=alt.sources.crypto#6
>>
>> > More examples are evident at these links:
>>
>> > https://rocksolid.sybershock.com/rocksolid/article-flat.php?
id=20&group=alt.sources.crypto#20
>> > https://rocksolid.sybershock.com/rocksolid/article-flat.php?
id=8&group=alt.sources.crypto#8
>> > https://rocksolid.sybershock.com/rocksolid/article-flat.php?
id=5&group=alt.sources.crypto#5
>>
>> I get "Page not found" at all these links.
>>
>> But the article I'm replying to displays, and I'm not seeing any
>> missing characters. Maybe you're working on it right now?
>>
>>
> Sorry about that. I killed the server for a few minutes while poking
> around. It is up and running now. I checked the links and they are
> currently working. I won't touch anything on this end. Knock on wood.

They work now :)

I see what you mean. I just added that group to my test site so I can take
a look at what's going on.

There's a lot of code in rslight now, and I don't always remember what I
was thinking when I wrote some of it, or how it works right away. I need
to read it and then remember.

Re: [rslight] truncated spaces in first line of html article body

<074f207d403644b6d2ea01d00991d0c7@news.novabbs.org>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=680&group=rocksolid.nodes.help#680

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] truncated spaces in first line of html article body
Date: Sat, 9 Dec 2023 19:33:42 +0000
Organization: Rocksolid Light
Message-ID: <074f207d403644b6d2ea01d00991d0c7@news.novabbs.org>
References: <20231209110357.23156f9c@dev> <ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org> <20231209120857.61c03ba9@dev> <2617332fa33a019beda271370bb551ef$1@news.novabbs.org>
MIME-Version: 1.0
Content-Type: multipart/mixed;boundary="------------6574c115e4ac40.60007918"
Injection-Info: i2pn2.org;
logging-data="3585602"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 91053d4a47d51b416144568e5a1040f05e31ed1b
X-Rslight-Site: $2y$10$HvTd11q2YdNHY1r/oUTVwuGdvKinNNOCJK1SdaFxHGysHjStDRkaC
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
 by: Retro Guy - Sat, 9 Dec 2023 19:33 UTC
Attachments: message.inc.php.zip (application/zip)

Retro Guy wrote:

> On Sat, 9 Dec 2023 12:08:57 -0600, Syber Shock wrote:

>> On Sat, 9 Dec 2023 17:51:18 +0000 retro.guy@rocksolidbbs.com (Retro Guy)
>> wrote:
>>
>>> Syber Shock wrote:
>>>
>>> > I noticed that the rslight engine truncates leading spaces in the
>>> > first line of messages in the message body display.
>>>
<snip>

> I see what you mean. I just added that group to my test site so I can take
> a look at what's going on.

> There's a lot of code in rslight now, and I don't always remember what I
> was thinking when I wrote some of it, or how it works right away. I need
> to read it and then remember.

Try this. I've attached message.inc.php in a .zip. It goes in $webdir/rocksolid/.lib

If it doesn't attach, I'll send it another way.

--
Retro Guy

Attachments: message.inc.php.zip (application/zip)
Re: [rslight] truncated spaces in first line of html article body

<85fdc17ff53537214ea640fa9790a46a$1@news.novabbs.org>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=681&group=rocksolid.nodes.help#681

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] truncated spaces in first line of html article body
Date: Sat, 9 Dec 2023 19:35:21 +0000
Organization: Rocksolid Light
Message-ID: <85fdc17ff53537214ea640fa9790a46a$1@news.novabbs.org>
References: <20231209110357.23156f9c@dev>
<ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org>
<20231209120857.61c03ba9@dev>
<2617332fa33a019beda271370bb551ef$1@news.novabbs.org>
<074f207d403644b6d2ea01d00991d0c7@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3586180"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5
*A|XCDf?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7
|z[.9iv^g>*8_BH0=hZt'[%)4kG|
 by: Retro Guy - Sat, 9 Dec 2023 19:35 UTC

On Sat, 9 Dec 2023 19:33:42 +0000, Retro Guy wrote:

> Retro Guy wrote:
>
>> On Sat, 9 Dec 2023 12:08:57 -0600, Syber Shock wrote:
>
>>> On Sat, 9 Dec 2023 17:51:18 +0000 retro.guy@rocksolidbbs.com (Retro
>>> Guy)
>>> wrote:
>>>
>>>> Syber Shock wrote:
>>>>
>>>> > I noticed that the rslight engine truncates leading spaces in the
>>>> > first line of messages in the message body display.
>>>>
> <snip>
>
>> I see what you mean. I just added that group to my test site so I can
>> take a look at what's going on.
>
>> There's a lot of code in rslight now, and I don't always remember what
>> I was thinking when I wrote some of it, or how it works right away. I
>> need to read it and then remember.
>
> Try this. I've attached message.inc.php in a .zip. It goes in
> $webdir/rocksolid/.lib
>
> If it doesn't attach, I'll send it another way.

I mean $webdir/rocksolid/lib (no dot) as message.inc.php

Re: [rslight] truncated spaces in first line of html article body

<20231209203515.6d733ed5@dev>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=682&group=rocksolid.nodes.help#682

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!nntp.comgw.net!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] truncated spaces in first line of html article body
Date: Sat, 9 Dec 2023 20:35:15 -0600
Organization: To protect and to server
Message-ID: <20231209203515.6d733ed5@dev>
References: <20231209110357.23156f9c@dev>
<ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org>
<20231209120857.61c03ba9@dev>
<2617332fa33a019beda271370bb551ef$1@news.novabbs.org>
<074f207d403644b6d2ea01d00991d0c7@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="2655640"; posting-host="xm0fvQtnZnKHtgpvufLRKQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:BU+zbSUGIxgSk4M2fEdiVtrU5g1bF8hrDFx0Za89Gdc=
X-TOR-Router: sha256:MTg1LjEwMC44NS4xMzI= --
X-Notice: Filtered by postfilter v. 0.9.3
 by: Syber Shock - Sun, 10 Dec 2023 02:35 UTC

On Sat, 9 Dec 2023 19:33:42 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> Try this. I've attached message.inc.php in a .zip. It goes in
> $webdir/rocksolid/.lib

I tested it and the messages appear correctly pre-formatted.

Re: [rslight] truncated spaces in first line of html article body

<6013a835181ad479db28cffc07889c47@rocksolidbbs.com>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=683&group=rocksolid.nodes.help#683

  copy link   Newsgroups: rocksolid.nodes.help
Date: Sun, 10 Dec 2023 13:12:38 +0000
Subject: Re: [rslight] truncated spaces in first line of html article body
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$j0W2jPvqg6EStjKZLNlJhOZ3xtsj/vQ1SIZ7leuYzMCXdyJ6LQqXq
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <20231209110357.23156f9c@dev> <ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org> <20231209120857.61c03ba9@dev> <2617332fa33a019beda271370bb551ef$1@news.novabbs.org> <074f207d403644b6d2ea01d00991d0c7@news.novabbs.org> <20231209203515.6d733ed5@dev>
Organization: RetroBBS
Message-ID: <6013a835181ad479db28cffc07889c47@rocksolidbbs.com>
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Sun, 10 Dec 2023 13:12 UTC

Syber Shock wrote:

> On Sat, 9 Dec 2023 19:33:42 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:

>> Try this. I've attached message.inc.php in a .zip. It goes in
>> $webdir/rocksolid/.lib

> I tested it and the messages appear correctly pre-formatted.

Great! I'll add it in a commit.

So, I need to add the above change, add some notes about pcntl_fork(), make remote server/port stuff more clear in config (port num vs just a 1), and create the nocem dirs during first run.

I'll work on that this week.

Thanks for the troubleshooting and feedback. It helps!

--
Retro Guy

Re: [rslight] truncated spaces in first line of html article body

<20231210185343.4a06ce8a@dev>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=684&group=rocksolid.nodes.help#684

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] truncated spaces in first line of html article body
Date: Sun, 10 Dec 2023 18:53:43 -0600
Organization: To protect and to server
Message-ID: <20231210185343.4a06ce8a@dev>
References: <20231209110357.23156f9c@dev>
<ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org>
<20231209120857.61c03ba9@dev>
<2617332fa33a019beda271370bb551ef$1@news.novabbs.org>
<074f207d403644b6d2ea01d00991d0c7@news.novabbs.org>
<20231209203515.6d733ed5@dev>
<6013a835181ad479db28cffc07889c47@rocksolidbbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="2935564"; posting-host="m9r6KTB9OEACg9xU9ZpzSQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:B8j5lTx30Nm9Qf7u2RqVLsdVBHms80DtE+CpCLGgp0o=
X-TOR-Router: sha256:NDUuMTQxLjIxNS42MQ== --
X-Notice: Filtered by postfilter v. 0.9.3
 by: Syber Shock - Mon, 11 Dec 2023 00:53 UTC

On Sun, 10 Dec 2023 13:12:38 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> Syber Shock wrote:
>
> > On Sat, 9 Dec 2023 19:33:42 +0000
> > retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
> >> Try this. I've attached message.inc.php in a .zip. It goes in
> >> $webdir/rocksolid/.lib
>
> > I tested it and the messages appear correctly pre-formatted.
>
> Great! I'll add it in a commit.
>
> So, I need to add the above change, add some notes about
> pcntl_fork(), make remote server/port stuff more clear in config
> (port num vs just a 1), and create the nocem dirs during first run.
>
> I'll work on that this week.
>
> Thanks for the troubleshooting and feedback. It helps!

No sweat. Over the next month of Sundays I will be researching other
options for the daemon and how to add them to the installer in a way
that will not confuse the end user. Best scenario is for installer to
check it silently and only alert the user if no option is available,
such as if php.ini has pcntl_fork, pcntl_signal, pcntl_waitpid and
such disabled. In the most extreme case, fallback could be a bash
nohup wrapper around nntp.php functions, connected to a init or systemd
daemon that restarts 30 seconds after failure and logs restart
timestamps to a file.

For instance on my most recent server pcntl is built in to php but
disabled by default. The way it is configured, pcntl errors are FATAL
errors with mandatory exit with no warning or error output. There is no
obvious way to catch them or do exception handling. I do not know why
php does it that way. It sure did have me wondering a bit.

Re: [rslight] truncated spaces in first line of html article body

<bfd40b5653958ae854cf2a98ebf26b71@rocksolidbbs.com>

  copy mid

https://rocksolidbbs.com/rocksolid/article-flat.php?id=685&group=rocksolid.nodes.help#685

  copy link   Newsgroups: rocksolid.nodes.help
Date: Mon, 11 Dec 2023 12:35:49 +0000
Subject: Re: [rslight] truncated spaces in first line of html article body
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on novalink.us
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$apQO5fCdSRAxaEjYyz2ZTOr8I1LxrxsD/OeTC940/Zrkc219a8Sua
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <20231209110357.23156f9c@dev> <ce97bbaadbffb3bd4ab233e75a86c11f@news.novabbs.org> <20231209120857.61c03ba9@dev> <2617332fa33a019beda271370bb551ef$1@news.novabbs.org> <074f207d403644b6d2ea01d00991d0c7@news.novabbs.org> <20231209203515.6d733ed5@dev> <6013a835181ad479db28cffc07889c47@rocksolidbbs.com> <20231210185343.4a06ce8a@dev>
Organization: RetroBBS
Message-ID: <bfd40b5653958ae854cf2a98ebf26b71@rocksolidbbs.com>
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Mon, 11 Dec 2023 12:35 UTC

Syber Shock wrote:

> On Sun, 10 Dec 2023 13:12:38 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:

>> Syber Shock wrote:
>>
>> > On Sat, 9 Dec 2023 19:33:42 +0000
>> > retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>
>> >> Try this. I've attached message.inc.php in a .zip. It goes in
>> >> $webdir/rocksolid/.lib
>>
>> > I tested it and the messages appear correctly pre-formatted.
>>
>> Great! I'll add it in a commit.
>>
>> So, I need to add the above change, add some notes about
>> pcntl_fork(), make remote server/port stuff more clear in config
>> (port num vs just a 1), and create the nocem dirs during first run.
>>
>> I'll work on that this week.
>>
>> Thanks for the troubleshooting and feedback. It helps!

> No sweat. Over the next month of Sundays I will be researching other
> options for the daemon and how to add them to the installer in a way
> that will not confuse the end user. Best scenario is for installer to
> check it silently and only alert the user if no option is available,
> such as if php.ini has pcntl_fork, pcntl_signal, pcntl_waitpid and
> such disabled. In the most extreme case, fallback could be a bash
> nohup wrapper around nntp.php functions, connected to a init or systemd
> daemon that restarts 30 seconds after failure and logs restart
> timestamps to a file.

> For instance on my most recent server pcntl is built in to php but
> disabled by default. The way it is configured, pcntl errors are FATAL
> errors with mandatory exit with no warning or error output. There is no
> obvious way to catch them or do exception handling. I do not know why
> php does it that way. It sure did have me wondering a bit.

For the time being, I have added an error message to cron.log:
Dec 11 12:33:29 ERROR: pcntl_fork() disabled in php ini file, cannot fork (nntp server will not start).

Now that we can check that in php, we can act on it with more than just an error message,

--
Retro Guy

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor