Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Take an astronaut to launch.


computers / Rocksolid Nodes Help / Re: [rslight] Duplicate Message Question

SubjectAuthor
* [rslight] Duplicate Message QuestionSugarBug
+* Re: [rslight] Duplicate Message QuestionRetro Guy
|+* Re: [rslight] Duplicate Message QuestionRetro Guy
||`* Re: [rslight] Duplicate Message QuestionSugarBug
|| `- Re: [rslight] Duplicate Message QuestionRetro Guy
|`* Re: [rslight] Duplicate Message QuestionSugarBug
| `* Re: [rslight] Duplicate Message QuestionRetro Guy
|  +* Re: [rslight] Duplicate Message QuestionRetro Guy
|  |`* Re: [rslight] Duplicate Message QuestionSugarBug
|  | `* Re: [rslight] Duplicate Message QuestionRetro Guy
|  |  `* Re: [rslight] Duplicate Message QuestionSugarBug
|  |   +- Re: [rslight] Duplicate Message QuestionRetro Guy
|  |   `* Re: [rslight] Duplicate Message QuestionRetro Guy
|  |    +- Re: [rslight] Duplicate Message QuestionRetro Guy
|  |    `* Re: [rslight] Duplicate Message QuestionSugarBug
|  |     `* Re: [rslight] Duplicate Message QuestionRetro Guy
|  |      `* Re: [rslight] Duplicate Message QuestionRetro Guy
|  |       `- Re: [rslight] Duplicate Message QuestionRetro Guy
|  `* Re: [rslight] Duplicate Message QuestionSugarBug
|   `- Re: [rslight] Duplicate Message QuestionRetro Guy
`* Re: [rslight] Duplicate Message QuestionMarco Moock
 +- Re: [rslight] Duplicate Message QuestionRetro Guy
 `- Re: [rslight] Duplicate Message QuestionSugarBug

1
[rslight] Duplicate Message Question

<176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=863&group=rocksolid.nodes.help#863

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: [rslight] Duplicate Message Question
Date: Wed, 17 Jan 2024 11:56:33 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3803139"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Wed, 17 Jan 2024 17:56 UTC

I noticed that with a peer (GRC) that ignores custom Message-ID that a
duplicate message is created in the newsgroup.

Steps:

1. Post a message via the local server. The message posts with the
Message-ID generated by rslight.

2. The remote INN server accepts the message on sync but strips the
Message-ID and replaces it with its own Message-ID.

This should be reproducible by posting to grc.test.

If the remote server strictly generates its own message-id in place of
the provided message-id, rslight is not aware of this. So rslight then
stores its original message in the spool with its own Message-ID, then
pulls the message from remote containing the remote-generated
Message-ID. This results in the same message appearing twice with two
Message-ID values.

Is there any configuration option to get rslight to accept the
Message-ID from the remote, or at least discard one of the duplicate
messages and refrain from re-copying the duplicate to and from the
remote?

--
@firefly@neon.nightbulb.net | https://neon.nightbulb.net/firefly
Grand Garter General of the Imperial Baggy Jeans Mafia

Re: [rslight] Duplicate Message Question

<e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=864&group=rocksolid.nodes.help#864

  copy link   Newsgroups: rocksolid.nodes.help
Date: Wed, 17 Jan 2024 18:21:51 +0000
Subject: Re: [rslight] Duplicate Message Question
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$TuntlWItNfrdDyHvJmTf3O3epGp5ye.bjSG0j5uI9pzCV7bl0H622
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
Organization: Rocksolid Light
Message-ID: <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>
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 - Wed, 17 Jan 2024 18:21 UTC

SugarBug wrote:

> I noticed that with a peer (GRC) that ignores custom Message-ID that a
> duplicate message is created in the newsgroup.

> Steps:

> 1. Post a message via the local server. The message posts with the
> Message-ID generated by rslight.

> 2. The remote INN server accepts the message on sync but strips the
> Message-ID and replaces it with its own Message-ID.

> This should be reproducible by posting to grc.test.

> If the remote server strictly generates its own message-id in place of
> the provided message-id, rslight is not aware of this. So rslight then
> stores its original message in the spool with its own Message-ID, then
> pulls the message from remote containing the remote-generated
> Message-ID. This results in the same message appearing twice with two
> Message-ID values.

> Is there any configuration option to get rslight to accept the
> Message-ID from the remote, or at least discard one of the duplicate
> messages and refrain from re-copying the duplicate to and from the
> remote?

Interesting. So the remote server is ignoring the supplied MID and creating it's own.

Does the remote server send a reply to state this? If it does, rslight could then modify it's MID. If not, we'll need to code it to NOT generate a MID for a certain <section>. If it DOES send a reply, that would be better. Can you see if it does that?

--
Retro Guy

Re: [rslight] Duplicate Message Question

<56ddcd9d7118a5143b14121175e8b2df@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=865&group=rocksolid.nodes.help#865

  copy link   Newsgroups: rocksolid.nodes.help
Date: Wed, 17 Jan 2024 18:24:23 +0000
Subject: Re: [rslight] Duplicate Message Question
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$YqxYm7mL7d6pLHzXax.0ue.Jxm2j3IrF2yBx9o/K/DcEiq55rMp9C
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>
Organization: Rocksolid Light
Message-ID: <56ddcd9d7118a5143b14121175e8b2df@news.novabbs.org>
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 - Wed, 17 Jan 2024 18:24 UTC

Retro Guy wrote:

> SugarBug wrote:

>> I noticed that with a peer (GRC) that ignores custom Message-ID that a
>> duplicate message is created in the newsgroup.

>> Steps:

>> 1. Post a message via the local server. The message posts with the
>> Message-ID generated by rslight.

>> 2. The remote INN server accepts the message on sync but strips the
>> Message-ID and replaces it with its own Message-ID.

>> This should be reproducible by posting to grc.test.

>> If the remote server strictly generates its own message-id in place of
>> the provided message-id, rslight is not aware of this. So rslight then
>> stores its original message in the spool with its own Message-ID, then
>> pulls the message from remote containing the remote-generated
>> Message-ID. This results in the same message appearing twice with two
>> Message-ID values.

>> Is there any configuration option to get rslight to accept the
>> Message-ID from the remote, or at least discard one of the duplicate
>> messages and refrain from re-copying the duplicate to and from the
>> remote?

> Interesting. So the remote server is ignoring the supplied MID and creating it's own.

> Does the remote server send a reply to state this? If it does, rslight could then modify it's MID. If not, we'll need to code it to NOT generate a MID for a certain <section>. If it DOES send a reply, that would be better. Can you see if it does that?

Actually, since the message is sent to the remote server AFTER posting locally, we'll need to create a config option by <section>. The config option would require that the post is NOT posted locally at all, but ONLY after retrieving it back from the remote server (since we won't know the MID at the time of posting)

--
Retro Guy

Re: [rslight] Duplicate Message Question

<uo9c85$267r4$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=866&group=rocksolid.nodes.help#866

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Duplicate Message Question
Date: Wed, 17 Jan 2024 21:10:44 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uo9c85$267r4$1@dont-email.me>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 17 Jan 2024 20:10:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f2e27a45f07cd926ede283f2f07d96ee";
logging-data="2301796"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bUf1lwo8QaPI1O7a7XYYX"
Cancel-Lock: sha1:AMtNWqkWpETMVu0QCndk1QsjjlA=
 by: Marco Moock - Wed, 17 Jan 2024 20:10 UTC

Am 17.01.2024 um 11:56:33 Uhr schrieb SugarBug:

> 2. The remote INN server accepts the message on sync but strips the
> Message-ID and replaces it with its own Message-ID.

That is the conceptual problem.
As message-ID is intended to be an identifier of a message and must not
be changed because then the message can't be identified anymore.

Tell the operator of that server not to change the Message ID.

Re: [rslight] Duplicate Message Question

<8dd20cdaa7d1ccb081681f8073c5b5d3$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=867&group=rocksolid.nodes.help#867

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Duplicate Message Question
Date: Thu, 18 Jan 2024 05:44:24 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <8dd20cdaa7d1ccb081681f8073c5b5d3$1@sybershock.com>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
<e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>
<56ddcd9d7118a5143b14121175e8b2df@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3887352"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Thu, 18 Jan 2024 11:44 UTC

On Wed, 17 Jan 2024 18:24:23 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> Retro Guy wrote:
>
> > SugarBug wrote:
>
> >> I noticed that with a peer (GRC) that ignores custom Message-ID
> >> that a duplicate message is created in the newsgroup.
>
> >> Steps:
>
> >> 1. Post a message via the local server. The message posts with the
> >> Message-ID generated by rslight.
>
> >> 2. The remote INN server accepts the message on sync but strips the
> >> Message-ID and replaces it with its own Message-ID.
>
> >> This should be reproducible by posting to grc.test.
>
> >> If the remote server strictly generates its own message-id in
> >> place of the provided message-id, rslight is not aware of this. So
> >> rslight then stores its original message in the spool with its own
> >> Message-ID, then pulls the message from remote containing the
> >> remote-generated Message-ID. This results in the same message
> >> appearing twice with two Message-ID values.
>
> >> Is there any configuration option to get rslight to accept the
> >> Message-ID from the remote, or at least discard one of the
> >> duplicate messages and refrain from re-copying the duplicate to
> >> and from the remote?
>
> > Interesting. So the remote server is ignoring the supplied MID and
> > creating it's own.
>
> > Does the remote server send a reply to state this? If it does,
> > rslight could then modify it's MID. If not, we'll need to code it
> > to NOT generate a MID for a certain <section>. If it DOES send a
> > reply, that would be better. Can you see if it does that?
>
> Actually, since the message is sent to the remote server AFTER
> posting locally, we'll need to create a config option by <section>.
> The config option would require that the post is NOT posted locally
> at all, but ONLY after retrieving it back from the remote server
> (since we won't know the MID at the time of posting)

Please hold off on making any code changes. I will need to examine it in
very fine detail to be sure of exactly what is happening.

--
CRYP7010G3R | Read between the signals. | Read between the signs.
<6ef76f5d853272d23e209476783618ed$1@sybershock.com>
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: [rslight] Duplicate Message Question

<e3e9af2ec8f88e228aca4045cb4b18ed$1@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=868&group=rocksolid.nodes.help#868

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <e3e9af2ec8f88e228aca4045cb4b18ed$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: [rslight] Duplicate Message Question
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <56ddcd9d7118a5143b14121175e8b2df@news.novabbs.org> <8dd20cdaa7d1ccb081681f8073c5b5d3$1@sybershock.com>
Date: Thu, 18 Jan 2024 05:23:39 -0700
 by: Retro Guy - Thu, 18 Jan 2024 12:23 UTC

On Thu, 18 Jan 2024 05:44:24 -0600, SugarBug wrote:

> On Wed, 17 Jan 2024 18:24:23 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
>> Retro Guy wrote:
>>
>>> SugarBug wrote:
>>
>>>> I noticed that with a peer (GRC) that ignores custom Message-ID
>>>> that a duplicate message is created in the newsgroup.
>>
>>>> Steps:
>>
>>>> 1. Post a message via the local server. The message posts with the
>>>> Message-ID generated by rslight.
>>
>>>> 2. The remote INN server accepts the message on sync but strips the
>>>> Message-ID and replaces it with its own Message-ID.
>>
>>>> This should be reproducible by posting to grc.test.
>>
>>>> If the remote server strictly generates its own message-id in
>>>> place of the provided message-id, rslight is not aware of this. So
>>>> rslight then stores its original message in the spool with its own
>>>> Message-ID, then pulls the message from remote containing the
>>>> remote-generated Message-ID. This results in the same message
>>>> appearing twice with two Message-ID values.
>>
>>>> Is there any configuration option to get rslight to accept the
>>>> Message-ID from the remote, or at least discard one of the
>>>> duplicate messages and refrain from re-copying the duplicate to
>>>> and from the remote?
>>
>>> Interesting. So the remote server is ignoring the supplied MID and
>>> creating it's own.
>>
>>> Does the remote server send a reply to state this? If it does,
>>> rslight could then modify it's MID. If not, we'll need to code it
>>> to NOT generate a MID for a certain <section>. If it DOES send a
>>> reply, that would be better. Can you see if it does that?
>>
>> Actually, since the message is sent to the remote server AFTER
>> posting locally, we'll need to create a config option by <section>.
>> The config option would require that the post is NOT posted locally
>> at all, but ONLY after retrieving it back from the remote server
>> (since we won't know the MID at the time of posting)
>
> Please hold off on making any code changes. I will need to examine it in
> very fine detail to be sure of exactly what is happening.

Got it! I'll wait to hear back.

I did take a peek at the code, and it shouldn't be too difficult to just
NOT insert on post, just wait until it returns from the remote server.

I guess I'll just finish my Sprouts order for today instead :)

Re: [rslight] Duplicate Message Question

<196be0944ed911f3397be5374f96b3f4$1@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=869&group=rocksolid.nodes.help#869

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <196be0944ed911f3397be5374f96b3f4$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: [rslight] Duplicate Message Question
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <uo9c85$267r4$1@dont-email.me>
Date: Thu, 18 Jan 2024 05:27:53 -0700
 by: Retro Guy - Thu, 18 Jan 2024 12:27 UTC

On Wed, 17 Jan 2024 21:10:44 +0100, Marco Moock wrote:

> Am 17.01.2024 um 11:56:33 Uhr schrieb SugarBug:
>
>> 2. The remote INN server accepts the message on sync but strips the
>> Message-ID and replaces it with its own Message-ID.
>
> That is the conceptual problem.
> As message-ID is intended to be an identifier of a message and must not
> be changed because then the message can't be identified anymore.
>
> Tell the operator of that server not to change the Message ID.

I agree that it's not a good thing to do. At least it should reject the
message with a reply that says something useful.

But since rslight is really a READER, it can't complain too much. If I
wrote the server that did this I'd say, "We're just trying to avoid
spoofing other servers in mid." I would though produce a proper nntp
response so the sender could see what happened in their logs.

Re: [rslight] Duplicate Message Question

<5078ed39bff031efab8fc6ac56626034$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=870&group=rocksolid.nodes.help#870

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Duplicate Message Question
Date: Thu, 18 Jan 2024 07:13:00 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <5078ed39bff031efab8fc6ac56626034$1@sybershock.com>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
<e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3895709"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Thu, 18 Jan 2024 13:13 UTC

On Wed, 17 Jan 2024 18:21:51 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> SugarBug wrote:
>
> > I noticed that with a peer (GRC) that ignores custom Message-ID
> > that a duplicate message is created in the newsgroup.
>
> > Steps:
>
> > 1. Post a message via the local server. The message posts with the
> > Message-ID generated by rslight.
>
> > 2. The remote INN server accepts the message on sync but strips the
> > Message-ID and replaces it with its own Message-ID.
>
> > This should be reproducible by posting to grc.test.
>
> > If the remote server strictly generates its own message-id in place
> > of the provided message-id, rslight is not aware of this. So
> > rslight then stores its original message in the spool with its own
> > Message-ID, then pulls the message from remote containing the
> > remote-generated Message-ID. This results in the same message
> > appearing twice with two Message-ID values.
>
> > Is there any configuration option to get rslight to accept the
> > Message-ID from the remote, or at least discard one of the duplicate
> > messages and refrain from re-copying the duplicate to and from the
> > remote?
>
> Interesting. So the remote server is ignoring the supplied MID and
> creating it's own.
>
> Does the remote server send a reply to state this? If it does,
> rslight could then modify it's MID. If not, we'll need to code it to
> NOT generate a MID for a certain <section>. If it DOES send a reply,
> that would be better. Can you see if it does that?

Rslight logs say, "Removed: 1" ==>

spoolnews.log:Jan 18 12:21:30 grc Posted: .msg: 240 Article received
<uob54a$cqf$1@GRC> Removed: 1

spoolnews.log.1:Jan 18 12:10:58 grc Posted: .msg: 240 Article received
<uob4gi$cjq$1@GRC> Removed: 1

Two of the test messages generated duplicates. Two did not:

https://rslight.sybershock.com/grc/thread.php?group=grc.test

Look for subjects containing, "Testing Duplicate Message Bug".

Here is more logging from my rslight:

nntp.log:Jan 18 12:19:27 grc.test:28 240 Article received OK (posted)
nntp.log:Jan 18 12:28:20 grc.test:30 240 Article received OK (posted)
nntp.log.1:Jan 18 12:02:30 grc.test:21 240 Article received OK (posted)
nntp.log.1:Jan 18 12:02:47 grc.test:22 240 Article received OK (posted)
nntp.log.1:Jan 18 12:03:16 grc.test:23 240 Article received OK (posted)
spoolnews.log:Jan 18 12:21:30 grc Posted: .msg: 240 Article received
<uob54a$cqf$1@GRC> Removed: 1
spoolnews.log.1:Jan 18 12:10:58 grc Posted: .msg: 240 Article received
<uob4gi$cjq$1@GRC> Removed: 1

--
Night Bulb | nightbulb.net | alt.light.bulb

Re: [rslight] Duplicate Message Question

<df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=871&group=rocksolid.nodes.help#871

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: [rslight] Duplicate Message Question
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com>
Date: Thu, 18 Jan 2024 06:38:51 -0700
 by: Retro Guy - Thu, 18 Jan 2024 13:38 UTC

On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:

> On Wed, 17 Jan 2024 18:21:51 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
>> SugarBug wrote:
>>
>>> I noticed that with a peer (GRC) that ignores custom Message-ID
>>> that a duplicate message is created in the newsgroup.
>>
>>> Steps:
>>
>>> 1. Post a message via the local server. The message posts with the
>>> Message-ID generated by rslight.
>>
>>> 2. The remote INN server accepts the message on sync but strips the
>>> Message-ID and replaces it with its own Message-ID.
>>
>>> This should be reproducible by posting to grc.test.
>>
>>> If the remote server strictly generates its own message-id in place
>>> of the provided message-id, rslight is not aware of this. So
>>> rslight then stores its original message in the spool with its own
>>> Message-ID, then pulls the message from remote containing the
>>> remote-generated Message-ID. This results in the same message
>>> appearing twice with two Message-ID values.
>>
>>> Is there any configuration option to get rslight to accept the
>>> Message-ID from the remote, or at least discard one of the duplicate
>>> messages and refrain from re-copying the duplicate to and from the
>>> remote?
>>
>> Interesting. So the remote server is ignoring the supplied MID and
>> creating it's own.
>>
>> Does the remote server send a reply to state this? If it does,
>> rslight could then modify it's MID. If not, we'll need to code it to
>> NOT generate a MID for a certain <section>. If it DOES send a reply,
>> that would be better. Can you see if it does that?
>
> Rslight logs say, "Removed: 1" ==>
>
> spoolnews.log:Jan 18 12:21:30 grc Posted: .msg: 240 Article received
> <uob54a$cqf$1@GRC> Removed: 1
>
> spoolnews.log.1:Jan 18 12:10:58 grc Posted: .msg: 240 Article received
> <uob4gi$cjq$1@GRC> Removed: 1
>
> Two of the test messages generated duplicates. Two did not:
>
> https://rslight.sybershock.com/grc/thread.php?group=grc.test
>
> Look for subjects containing, "Testing Duplicate Message Bug".
>
> Here is more logging from my rslight:
>
> nntp.log:Jan 18 12:19:27 grc.test:28 240 Article received OK (posted)
> nntp.log:Jan 18 12:28:20 grc.test:30 240 Article received OK (posted)
> nntp.log.1:Jan 18 12:02:30 grc.test:21 240 Article received OK (posted)
> nntp.log.1:Jan 18 12:02:47 grc.test:22 240 Article received OK (posted)
> nntp.log.1:Jan 18 12:03:16 grc.test:23 240 Article received OK (posted)
> spoolnews.log:Jan 18 12:21:30 grc Posted: .msg: 240 Article received
> <uob54a$cqf$1@GRC> Removed: 1
> spoolnews.log.1:Jan 18 12:10:58 grc Posted: .msg: 240 Article received
> <uob4gi$cjq$1@GRC> Removed: 1

"Removed: 1" is a leftover debug message. I'll fix that. It simply means
that the file in <section>/outgoing was successfully deleted. (It's the
return value of unlink)

I'm more concerned with: "Posted: .msg". The '.msg' should be a file name,
and I don't see how the file name is '.msg', it should be a message-id. How
was that particular message posted? Via rslight, via rslight nntp server,
or manually maybe?

nntp.log means the message was posted to the rslight nntp server ok.
spoolnews.log means the message was posted to the remote server ok (or at
least received a '240' response from remote server.

Re: [rslight] Duplicate Message Question

<289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=872&group=rocksolid.nodes.help#872

  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] Duplicate Message Question
Date: Thu, 18 Jan 2024 06:50:04 -0700
Organization: Rocksolid Light
Message-ID: <289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3899028"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: 40tude_Dialog/2.0.15.41
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: Retro Guy - Thu, 18 Jan 2024 13:50 UTC

On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:

> On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>
>> On Wed, 17 Jan 2024 18:21:51 +0000
>> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>
>>> SugarBug wrote:
>>>
>>>> I noticed that with a peer (GRC) that ignores custom Message-ID
>>>> that a duplicate message is created in the newsgroup.
>>>
>>>> Steps:
>>>
>>>> 1. Post a message via the local server. The message posts with the
>>>> Message-ID generated by rslight.
>>>
>>>> 2. The remote INN server accepts the message on sync but strips the
>>>> Message-ID and replaces it with its own Message-ID.
>>>
>>>> This should be reproducible by posting to grc.test.
>>>
>>>> If the remote server strictly generates its own message-id in place
>>>> of the provided message-id, rslight is not aware of this. So
>>>> rslight then stores its original message in the spool with its own
>>>> Message-ID, then pulls the message from remote containing the
>>>> remote-generated Message-ID. This results in the same message
>>>> appearing twice with two Message-ID values.
>>>
>>>> Is there any configuration option to get rslight to accept the
>>>> Message-ID from the remote, or at least discard one of the duplicate
>>>> messages and refrain from re-copying the duplicate to and from the
>>>> remote?
>>>
>>> Interesting. So the remote server is ignoring the supplied MID and
>>> creating it's own.
>>>
>>> Does the remote server send a reply to state this? If it does,
>>> rslight could then modify it's MID. If not, we'll need to code it to
>>> NOT generate a MID for a certain <section>. If it DOES send a reply,
>>> that would be better. Can you see if it does that?
<snip>
>>
>> Two of the test messages generated duplicates. Two did not:

My guess is that two were not inserted immediately and two were. The ones
not inserted immediately were only inserted after receiving back from
remote server (so no duplicate).

Rslight will not insert immediately if spoolnews for the specific section
is running at that moment. In that situation, it will only prepare it for
send to remote server and wait for it's return. (That will explain why some
messages do not appear immediately after posting)

Re: [rslight] Duplicate Message Question

<802d3a7d81422063ecc093f777b3e0ea$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=873&group=rocksolid.nodes.help#873

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Duplicate Message Question
Date: Thu, 18 Jan 2024 12:35:13 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <802d3a7d81422063ecc093f777b3e0ea$1@sybershock.com>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
<e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>
<5078ed39bff031efab8fc6ac56626034$1@sybershock.com>
<df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3924445"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Thu, 18 Jan 2024 18:35 UTC

On Thu, 18 Jan 2024 06:38:51 -0700
Retro Guy <retroguy@novabbs.org> wrote:

> On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>
> > On Wed, 17 Jan 2024 18:21:51 +0000
> > retro.guy@rocksolidbbs.com (Retro Guy) wrote:
> >
> >> SugarBug wrote:
> >>
> >>> I noticed that with a peer (GRC) that ignores custom Message-ID
> >>> that a duplicate message is created in the newsgroup.
> >>
> >>> Steps:
> >>
> >>> 1. Post a message via the local server. The message posts with the
> >>> Message-ID generated by rslight.
> >>
> >>> 2. The remote INN server accepts the message on sync but strips
> >>> the Message-ID and replaces it with its own Message-ID.
> >>
> >>> This should be reproducible by posting to grc.test.
> >>
> >>> If the remote server strictly generates its own message-id in
> >>> place of the provided message-id, rslight is not aware of this. So
> >>> rslight then stores its original message in the spool with its own
> >>> Message-ID, then pulls the message from remote containing the
> >>> remote-generated Message-ID. This results in the same message
> >>> appearing twice with two Message-ID values.
> >>
> >>> Is there any configuration option to get rslight to accept the
> >>> Message-ID from the remote, or at least discard one of the
> >>> duplicate messages and refrain from re-copying the duplicate to
> >>> and from the remote?
> >>
> >> Interesting. So the remote server is ignoring the supplied MID and
> >> creating it's own.
> >>
> >> Does the remote server send a reply to state this? If it does,
> >> rslight could then modify it's MID. If not, we'll need to code it
> >> to NOT generate a MID for a certain <section>. If it DOES send a
> >> reply, that would be better. Can you see if it does that?
> >
> > Rslight logs say, "Removed: 1" ==>
> >
> > spoolnews.log:Jan 18 12:21:30 grc Posted: .msg: 240 Article received
> > <uob54a$cqf$1@GRC> Removed: 1
> >
> > spoolnews.log.1:Jan 18 12:10:58 grc Posted: .msg: 240 Article
> > received <uob4gi$cjq$1@GRC> Removed: 1
> >
> > Two of the test messages generated duplicates. Two did not:
> >
> > https://rslight.sybershock.com/grc/thread.php?group=grc.test
> >
> > Look for subjects containing, "Testing Duplicate Message Bug".
> >
> > Here is more logging from my rslight:
> >
> > nntp.log:Jan 18 12:19:27 grc.test:28 240 Article received OK
> > (posted) nntp.log:Jan 18 12:28:20 grc.test:30 240 Article received
> > OK (posted) nntp.log.1:Jan 18 12:02:30 grc.test:21 240 Article
> > received OK (posted) nntp.log.1:Jan 18 12:02:47 grc.test:22 240
> > Article received OK (posted) nntp.log.1:Jan 18 12:03:16 grc.test:23
> > 240 Article received OK (posted) spoolnews.log:Jan 18 12:21:30 grc
> > Posted: .msg: 240 Article received <uob54a$cqf$1@GRC> Removed: 1
> > spoolnews.log.1:Jan 18 12:10:58 grc Posted: .msg: 240 Article
> > received <uob4gi$cjq$1@GRC> Removed: 1
>
> "Removed: 1" is a leftover debug message. I'll fix that. It simply
> means that the file in <section>/outgoing was successfully deleted.
> (It's the return value of unlink)
>
> I'm more concerned with: "Posted: .msg". The '.msg' should be a file
> name, and I don't see how the file name is '.msg', it should be a
> message-id. How was that particular message posted? Via rslight, via
> rslight nntp server, or manually maybe?

The messages were all posted using claws-mail news client. The
newsreaders posted the messages to my rslight test server via NNTP. The
test server forwards the messages to GRC. Eventually on synchronizing
with GRC the rslight server pulls back a duplicate message with a
message-id ending with "@GRC".
> nntp.log means the message was posted to the rslight nntp server ok.
> spoolnews.log means the message was posted to the remote server ok
> (or at least received a '240' response from remote server.

--
3883@sugar.bug | sybershock.com | alt.cypher

Re: [rslight] Duplicate Message Question

<82db56bfefe57a6c726720660cee3b54$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=874&group=rocksolid.nodes.help#874

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Duplicate Message Question
Date: Thu, 18 Jan 2024 12:47:06 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <82db56bfefe57a6c726720660cee3b54$1@sybershock.com>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
<e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>
<5078ed39bff031efab8fc6ac56626034$1@sybershock.com>
<df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org>
<289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3926462"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Thu, 18 Jan 2024 18:47 UTC

On Thu, 18 Jan 2024 06:50:04 -0700
Retro Guy <retroguy@novabbs.org> wrote:

> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
>
> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
> >
> >> On Wed, 17 Jan 2024 18:21:51 +0000
> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
> >>
> >>> SugarBug wrote:
> >>>
> >>>> I noticed that with a peer (GRC) that ignores custom Message-ID
> >>>> that a duplicate message is created in the newsgroup.
> >>>
> >>>> Steps:
> >>>
> >>>> 1. Post a message via the local server. The message posts with
> >>>> the Message-ID generated by rslight.
> >>>
> >>>> 2. The remote INN server accepts the message on sync but strips
> >>>> the Message-ID and replaces it with its own Message-ID.
> >>>
> >>>> This should be reproducible by posting to grc.test.
> >>>
> >>>> If the remote server strictly generates its own message-id in
> >>>> place of the provided message-id, rslight is not aware of this.
> >>>> So rslight then stores its original message in the spool with
> >>>> its own Message-ID, then pulls the message from remote
> >>>> containing the remote-generated Message-ID. This results in the
> >>>> same message appearing twice with two Message-ID values.
> >>>
> >>>> Is there any configuration option to get rslight to accept the
> >>>> Message-ID from the remote, or at least discard one of the
> >>>> duplicate messages and refrain from re-copying the duplicate to
> >>>> and from the remote?
> >>>
> >>> Interesting. So the remote server is ignoring the supplied MID and
> >>> creating it's own.
> >>>
> >>> Does the remote server send a reply to state this? If it does,
> >>> rslight could then modify it's MID. If not, we'll need to code it
> >>> to NOT generate a MID for a certain <section>. If it DOES send a
> >>> reply, that would be better. Can you see if it does that?
> <snip>
> >>
> >> Two of the test messages generated duplicates. Two did not:
>
> My guess is that two were not inserted immediately and two were. The
> ones not inserted immediately were only inserted after receiving back
> from remote server (so no duplicate).
>
> Rslight will not insert immediately if spoolnews for the specific
> section is running at that moment. In that situation, it will only
> prepare it for send to remote server and wait for it's return. (That
> will explain why some messages do not appear immediately after
> posting)

I ensured the cron job was not running and I posted two messages.

Then I ensured the cron job was running and I posted one message.

I can confirm that a duplicate was created while the cron was running.

Here are the duplicate message-id headers:

<8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com> <uobr41$k2l$1@GRC>

Here is the spoolnews entry:

spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article received
<uobr41$k2l$1@GRC> Removed: 1

All three messages were posted using claws-mail. All three messages
were posted to my rslight NNTP server, which then synced to the GRC
test group.

--
3883@sugar.bug | Free Usenet Servers | https://sybershock.com/#usenet

Re: [rslight] Duplicate Message Question

<95636b2ecb9c8cc27740c3b27ab21af1$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=875&group=rocksolid.nodes.help#875

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Duplicate Message Question
Date: Thu, 18 Jan 2024 13:18:47 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <95636b2ecb9c8cc27740c3b27ab21af1$1@sybershock.com>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
<uo9c85$267r4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3928283"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Thu, 18 Jan 2024 19:18 UTC

On Wed, 17 Jan 2024 21:10:44 +0100
Marco Moock <mm+usenet-es@dorfdsl.de> wrote:

> Am 17.01.2024 um 11:56:33 Uhr schrieb SugarBug:
>
> > 2. The remote INN server accepts the message on sync but strips the
> > Message-ID and replaces it with its own Message-ID.
>
> That is the conceptual problem.
> As message-ID is intended to be an identifier of a message and must
> not be changed because then the message can't be identified anymore.
>
> Tell the operator of that server not to change the Message ID.

I doubt that will change anything. GRC is not peered to Usenet and does
not follow Usenet specs. I have my rslight testing server peered to it.

--
4477@king.bee | Flee the Swarm. Join the horde. | talk.politics.crypto

Re: [rslight] Duplicate Message Question

<fc7072fd310f289dd45dff028830235a@www.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=876&group=rocksolid.nodes.help#876

  copy link   Newsgroups: rocksolid.nodes.help
Date: Thu, 18 Jan 2024 19:39:59 +0000
Subject: Re: [rslight] Duplicate Message Question
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$M57.hNRGU5QlzXb.ESME.u/j1yn8GaBFUVgIDb4Uq/.Y2Pv5Pj9Ji
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org> <289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org> <82db56bfefe57a6c726720660cee3b54$1@sybershock.com>
Organization: Rocksolid Light
Message-ID: <fc7072fd310f289dd45dff028830235a@www.novabbs.org>
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 - Thu, 18 Jan 2024 19:39 UTC

SugarBug wrote:

> On Thu, 18 Jan 2024 06:50:04 -0700
> Retro Guy <retroguy@novabbs.org> wrote:

>> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
>>
>> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>> >
>> >> On Wed, 17 Jan 2024 18:21:51 +0000
>> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>> >>
>> >>> SugarBug wrote:
>> >>>
>> >>>> I noticed that with a peer (GRC) that ignores custom Message-ID
>> >>>> that a duplicate message is created in the newsgroup.
>> >>>
>> >>>> Steps:
>> >>>
>> >>>> 1. Post a message via the local server. The message posts with
>> >>>> the Message-ID generated by rslight.
>> >>>
>> >>>> 2. The remote INN server accepts the message on sync but strips
>> >>>> the Message-ID and replaces it with its own Message-ID.
>> >>>
>> >>>> This should be reproducible by posting to grc.test.
>> >>>
>> >>>> If the remote server strictly generates its own message-id in
>> >>>> place of the provided message-id, rslight is not aware of this.
>> >>>> So rslight then stores its original message in the spool with
>> >>>> its own Message-ID, then pulls the message from remote
>> >>>> containing the remote-generated Message-ID. This results in the
>> >>>> same message appearing twice with two Message-ID values.
>> >>>
>> >>>> Is there any configuration option to get rslight to accept the
>> >>>> Message-ID from the remote, or at least discard one of the
>> >>>> duplicate messages and refrain from re-copying the duplicate to
>> >>>> and from the remote?
>> >>>
>> >>> Interesting. So the remote server is ignoring the supplied MID and
>> >>> creating it's own.
>> >>>
>> >>> Does the remote server send a reply to state this? If it does,
>> >>> rslight could then modify it's MID. If not, we'll need to code it
>> >>> to NOT generate a MID for a certain <section>. If it DOES send a
>> >>> reply, that would be better. Can you see if it does that?
>> <snip>
>> >>
>> >> Two of the test messages generated duplicates. Two did not:
>>
>> My guess is that two were not inserted immediately and two were. The
>> ones not inserted immediately were only inserted after receiving back
>> from remote server (so no duplicate).
>>
>> Rslight will not insert immediately if spoolnews for the specific
>> section is running at that moment. In that situation, it will only
>> prepare it for send to remote server and wait for it's return. (That
>> will explain why some messages do not appear immediately after
>> posting)

> I ensured the cron job was not running and I posted two messages.

> Then I ensured the cron job was running and I posted one message.

> I can confirm that a duplicate was created while the cron was running.

Messages won't immediately insert if the specific spoolnews.php for the specific <section> is running. Cron can be running, just not the specific spoolnews.php.

> Here are the duplicate message-id headers:

> <8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com> <uobr41$k2l$1@GRC>

> Here is the spoolnews entry:

> spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article received
> <uobr41$k2l$1@GRC> Removed: 1

> All three messages were posted using claws-mail. All three messages
> were posted to my rslight NNTP server, which then synced to the GRC
> test group.

Ok, thank you for testing. It does look like anytime a message is immediately inserted, it gets duplicated. I don't see a way around that other than a config option to disable immediate insertion for the section.

--
Retro Guy

Re: [rslight] Duplicate Message Question

<a4258d6e3a4e283fdbf95460cde6e421$1@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=877&group=rocksolid.nodes.help#877

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <a4258d6e3a4e283fdbf95460cde6e421$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: [rslight] Duplicate Message Question
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org> <802d3a7d81422063ecc093f777b3e0ea$1@sybershock.com>
Date: Thu, 18 Jan 2024 12:52:05 -0700
 by: Retro Guy - Thu, 18 Jan 2024 19:52 UTC

On Thu, 18 Jan 2024 12:35:13 -0600, SugarBug wrote:

> On Thu, 18 Jan 2024 06:38:51 -0700
> Retro Guy <retroguy@novabbs.org> wrote:
>
>> On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>>
>>> On Wed, 17 Jan 2024 18:21:51 +0000
>>> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>>
>>>> SugarBug wrote:
>>>>
>>>>> I noticed that with a peer (GRC) that ignores custom Message-ID
>>>>> that a duplicate message is created in the newsgroup.
>>>>
>>>>> Steps:
>>>>
>>>>> 1. Post a message via the local server. The message posts with the
>>>>> Message-ID generated by rslight.
>>>>
>>>>> 2. The remote INN server accepts the message on sync but strips
>>>>> the Message-ID and replaces it with its own Message-ID.
>>>>
>>>>> This should be reproducible by posting to grc.test.
>>>>
>>>>> If the remote server strictly generates its own message-id in
>>>>> place of the provided message-id, rslight is not aware of this. So
>>>>> rslight then stores its original message in the spool with its own
>>>>> Message-ID, then pulls the message from remote containing the
>>>>> remote-generated Message-ID. This results in the same message
>>>>> appearing twice with two Message-ID values.
>>>>
>>>>> Is there any configuration option to get rslight to accept the
>>>>> Message-ID from the remote, or at least discard one of the
>>>>> duplicate messages and refrain from re-copying the duplicate to
>>>>> and from the remote?
>>>>
>>>> Interesting. So the remote server is ignoring the supplied MID and
>>>> creating it's own.
>>>>
>>>> Does the remote server send a reply to state this? If it does,
>>>> rslight could then modify it's MID. If not, we'll need to code it
>>>> to NOT generate a MID for a certain <section>. If it DOES send a
>>>> reply, that would be better. Can you see if it does that?
>>>
>>> Rslight logs say, "Removed: 1" ==>
>>>
>>> spoolnews.log:Jan 18 12:21:30 grc Posted: .msg: 240 Article received
>>> <uob54a$cqf$1@GRC> Removed: 1
>>>
>>> spoolnews.log.1:Jan 18 12:10:58 grc Posted: .msg: 240 Article
>>> received <uob4gi$cjq$1@GRC> Removed: 1
>>>
>>> Two of the test messages generated duplicates. Two did not:
>>>
>>> https://rslight.sybershock.com/grc/thread.php?group=grc.test
>>>
>>> Look for subjects containing, "Testing Duplicate Message Bug".
>>>
>>> Here is more logging from my rslight:
>>>
>>> nntp.log:Jan 18 12:19:27 grc.test:28 240 Article received OK
>>> (posted) nntp.log:Jan 18 12:28:20 grc.test:30 240 Article received
>>> OK (posted) nntp.log.1:Jan 18 12:02:30 grc.test:21 240 Article
>>> received OK (posted) nntp.log.1:Jan 18 12:02:47 grc.test:22 240
>>> Article received OK (posted) nntp.log.1:Jan 18 12:03:16 grc.test:23
>>> 240 Article received OK (posted) spoolnews.log:Jan 18 12:21:30 grc
>>> Posted: .msg: 240 Article received <uob54a$cqf$1@GRC> Removed: 1
>>> spoolnews.log.1:Jan 18 12:10:58 grc Posted: .msg: 240 Article
>>> received <uob4gi$cjq$1@GRC> Removed: 1
>>
>> "Removed: 1" is a leftover debug message. I'll fix that. It simply
>> means that the file in <section>/outgoing was successfully deleted.
>> (It's the return value of unlink)
>>
>> I'm more concerned with: "Posted: .msg". The '.msg' should be a file
>> name, and I don't see how the file name is '.msg', it should be a
>> message-id. How was that particular message posted? Via rslight, via
>> rslight nntp server, or manually maybe?
>
> The messages were all posted using claws-mail news client. The
> newsreaders posted the messages to my rslight test server via NNTP. The
> test server forwards the messages to GRC. Eventually on synchronizing
> with GRC the rslight server pulls back a duplicate message with a
> message-id ending with "@GRC".
>
>> nntp.log means the message was posted to the rslight nntp server ok.
>> spoolnews.log means the message was posted to the remote server ok
>> (or at least received a '240' response from remote server.

Is it reasonable for you to place all GRC groups in one section?

If so, I'll code a config setting to disable immediate posting and we'll
see how that does.

Re: [rslight] Duplicate Message Question

<6d2bafdd51830315878e9fde76c3178d$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=878&group=rocksolid.nodes.help#878

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Duplicate Message Question
Date: Thu, 18 Jan 2024 18:11:57 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <6d2bafdd51830315878e9fde76c3178d$1@sybershock.com>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
<e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>
<5078ed39bff031efab8fc6ac56626034$1@sybershock.com>
<df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org>
<289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org>
<82db56bfefe57a6c726720660cee3b54$1@sybershock.com>
<fc7072fd310f289dd45dff028830235a@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3953711"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Fri, 19 Jan 2024 00:11 UTC

On Thu, 18 Jan 2024 19:39:59 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> SugarBug wrote:
>
> > On Thu, 18 Jan 2024 06:50:04 -0700
> > Retro Guy <retroguy@novabbs.org> wrote:
>
> >> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
> >>
> >> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
> >> >
> >> >> On Wed, 17 Jan 2024 18:21:51 +0000
> >> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
> >> >>
> >> >>> SugarBug wrote:
> >> >>>
> >> >>>> I noticed that with a peer (GRC) that ignores custom
> >> >>>> Message-ID that a duplicate message is created in the
> >> >>>> newsgroup.
> >> >>>
> >> >>>> Steps:
> >> >>>
> >> >>>> 1. Post a message via the local server. The message posts with
> >> >>>> the Message-ID generated by rslight.
> >> >>>
> >> >>>> 2. The remote INN server accepts the message on sync but
> >> >>>> strips the Message-ID and replaces it with its own
> >> >>>> Message-ID.
> >> >>>
> >> >>>> This should be reproducible by posting to grc.test.
> >> >>>
> >> >>>> If the remote server strictly generates its own message-id in
> >> >>>> place of the provided message-id, rslight is not aware of
> >> >>>> this. So rslight then stores its original message in the
> >> >>>> spool with its own Message-ID, then pulls the message from
> >> >>>> remote containing the remote-generated Message-ID. This
> >> >>>> results in the same message appearing twice with two
> >> >>>> Message-ID values.
> >> >>>
> >> >>>> Is there any configuration option to get rslight to accept the
> >> >>>> Message-ID from the remote, or at least discard one of the
> >> >>>> duplicate messages and refrain from re-copying the duplicate
> >> >>>> to and from the remote?
> >> >>>
> >> >>> Interesting. So the remote server is ignoring the supplied MID
> >> >>> and creating it's own.
> >> >>>
> >> >>> Does the remote server send a reply to state this? If it does,
> >> >>> rslight could then modify it's MID. If not, we'll need to code
> >> >>> it to NOT generate a MID for a certain <section>. If it DOES
> >> >>> send a reply, that would be better. Can you see if it does
> >> >>> that?
> >> <snip>
> >> >>
> >> >> Two of the test messages generated duplicates. Two did not:
> >>
> >> My guess is that two were not inserted immediately and two were.
> >> The ones not inserted immediately were only inserted after
> >> receiving back from remote server (so no duplicate).
> >>
> >> Rslight will not insert immediately if spoolnews for the specific
> >> section is running at that moment. In that situation, it will only
> >> prepare it for send to remote server and wait for it's return.
> >> (That will explain why some messages do not appear immediately
> >> after posting)
>
> > I ensured the cron job was not running and I posted two messages.
>
> > Then I ensured the cron job was running and I posted one message.
>
> > I can confirm that a duplicate was created while the cron was
> > running.
>
> Messages won't immediately insert if the specific spoolnews.php for
> the specific <section> is running. Cron can be running, just not the
> specific spoolnews.php.
>
> > Here are the duplicate message-id headers:
>
> > <8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com>
> > <uobr41$k2l$1@GRC>
>
> > Here is the spoolnews entry:
>
> > spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article received
> > <uobr41$k2l$1@GRC> Removed: 1
>
> > All three messages were posted using claws-mail. All three messages
> > were posted to my rslight NNTP server, which then synced to the GRC
> > test group.
>
> Ok, thank you for testing. It does look like anytime a message is
> immediately inserted, it gets duplicated. I don't see a way around
> that other than a config option to disable immediate insertion for
> the section.

I think you are right in your assessment. Since GRC is opinionated
about using only its own serialized Message-ID header I don't know of
any way to tell the remote server to override that behavior. If you
want to try a config hack I will test it and report back.

I thought about a body+date+from+newsgroups accumulator hash to compare,
but that might take quite a bit more code changing. And since it would
have to be in the database tables, multiple hashes would need to be
computed and compared for every message, slowing things down
consistently.

One other idea I have is something like a alternative to xref:

X-RSLIGHT-SERIAL: newsgroup.name 1234567890 3883@BJM

but that will not work since GRC stripped the custom header in a test.
I presume some other servers would also strip the custom header.

So that leads me to a question: do Usenet hosts and/or servers like INN
have a practice of stripping custom headers from messages posted in
reader mode?

--
CRYP7010G3R | binary bunker | byte base | digit depot | glyph garrison
<b84e067e054611b9e4003dcb8944c7b7$1@sybershock.com>
3883@sugar.bug | sybershock.com | alt.sources.crypto

Re: [rslight] Duplicate Message Question

<aa2b58b9ba8375a33f2d3ad5752269b8$1@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=879&group=rocksolid.nodes.help#879

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <aa2b58b9ba8375a33f2d3ad5752269b8$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: [rslight] Duplicate Message Question
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org> <289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org> <82db56bfefe57a6c726720660cee3b54$1@sybershock.com> <fc7072fd310f289dd45dff028830235a@www.novabbs.org> <6d2bafdd51830315878e9fde76c3178d$1@sybershock.com>
Date: Thu, 18 Jan 2024 20:08:22 -0700
 by: Retro Guy - Fri, 19 Jan 2024 03:08 UTC

On Thu, 18 Jan 2024 18:11:57 -0600, SugarBug wrote:

> On Thu, 18 Jan 2024 19:39:59 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
>> SugarBug wrote:
>>
>>> On Thu, 18 Jan 2024 06:50:04 -0700
>>> Retro Guy <retroguy@novabbs.org> wrote:
>>
>>>> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
>>>>
>>>> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>>>> >
>>>> >> On Wed, 17 Jan 2024 18:21:51 +0000
>>>> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>>> >>
>>>> >>> SugarBug wrote:
>>>> >>>
>>>> >>>> I noticed that with a peer (GRC) that ignores custom
>>>> >>>> Message-ID that a duplicate message is created in the
>>>> >>>> newsgroup.
>>>> >>>
>>>> >>>> Steps:
>>>> >>>
>>>> >>>> 1. Post a message via the local server. The message posts with
>>>> >>>> the Message-ID generated by rslight.
>>>> >>>
>>>> >>>> 2. The remote INN server accepts the message on sync but
>>>> >>>> strips the Message-ID and replaces it with its own
>>>> >>>> Message-ID.
>>>> >>>
>>>> >>>> This should be reproducible by posting to grc.test.
>>>> >>>
>>>> >>>> If the remote server strictly generates its own message-id in
>>>> >>>> place of the provided message-id, rslight is not aware of
>>>> >>>> this. So rslight then stores its original message in the
>>>> >>>> spool with its own Message-ID, then pulls the message from
>>>> >>>> remote containing the remote-generated Message-ID. This
>>>> >>>> results in the same message appearing twice with two
>>>> >>>> Message-ID values.
>>>> >>>
>>>> >>>> Is there any configuration option to get rslight to accept the
>>>> >>>> Message-ID from the remote, or at least discard one of the
>>>> >>>> duplicate messages and refrain from re-copying the duplicate
>>>> >>>> to and from the remote?
>>>> >>>
>>>> >>> Interesting. So the remote server is ignoring the supplied MID
>>>> >>> and creating it's own.
>>>> >>>
>>>> >>> Does the remote server send a reply to state this? If it does,
>>>> >>> rslight could then modify it's MID. If not, we'll need to code
>>>> >>> it to NOT generate a MID for a certain <section>. If it DOES
>>>> >>> send a reply, that would be better. Can you see if it does
>>>> >>> that?
>>>> <snip>
>>>> >>
>>>> >> Two of the test messages generated duplicates. Two did not:
>>>>
>>>> My guess is that two were not inserted immediately and two were.
>>>> The ones not inserted immediately were only inserted after
>>>> receiving back from remote server (so no duplicate).
>>>>
>>>> Rslight will not insert immediately if spoolnews for the specific
>>>> section is running at that moment. In that situation, it will only
>>>> prepare it for send to remote server and wait for it's return.
>>>> (That will explain why some messages do not appear immediately
>>>> after posting)
>>
>>> I ensured the cron job was not running and I posted two messages.
>>
>>> Then I ensured the cron job was running and I posted one message.
>>
>>> I can confirm that a duplicate was created while the cron was
>>> running.
>>
>> Messages won't immediately insert if the specific spoolnews.php for
>> the specific <section> is running. Cron can be running, just not the
>> specific spoolnews.php.
>>
>>> Here are the duplicate message-id headers:
>>
>>> <8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com>
>>> <uobr41$k2l$1@GRC>
>>
>>> Here is the spoolnews entry:
>>
>>> spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article received
>>> <uobr41$k2l$1@GRC> Removed: 1
>>
>>> All three messages were posted using claws-mail. All three messages
>>> were posted to my rslight NNTP server, which then synced to the GRC
>>> test group.
>>
>> Ok, thank you for testing. It does look like anytime a message is
>> immediately inserted, it gets duplicated. I don't see a way around
>> that other than a config option to disable immediate insertion for
>> the section.
>
> I think you are right in your assessment. Since GRC is opinionated
> about using only its own serialized Message-ID header I don't know of
> any way to tell the remote server to override that behavior. If you
> want to try a config hack I will test it and report back.
>
> I thought about a body+date+from+newsgroups accumulator hash to compare,
> but that might take quite a bit more code changing. And since it would
> have to be in the database tables, multiple hashes would need to be
> computed and compared for every message, slowing things down
> consistently.
>
> One other idea I have is something like a alternative to xref:
>
> X-RSLIGHT-SERIAL: newsgroup.name 1234567890 3883@BJM
>
> but that will not work since GRC stripped the custom header in a test.
> I presume some other servers would also strip the custom header.
>
> So that leads me to a question: do Usenet hosts and/or servers like INN
> have a practice of stripping custom headers from messages posted in
> reader mode?

They shouldn't strip X- headers. INN does not. You can see that X-Rslight-*
headers and X-Spam* headers make it through. But they should strip things
like Injection-Info, Path, stuff like that (unlike giganews).

Re: [rslight] Duplicate Message Question

<6dbb508c08aa9f24c1ff8b6e7f7a1c0d@www.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=880&group=rocksolid.nodes.help#880

  copy link   Newsgroups: rocksolid.nodes.help
Date: Fri, 19 Jan 2024 11:57:06 +0000
Subject: Re: [rslight] Duplicate Message Question
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$OKwrBEN7X75LepMYzA5KpO7bTm362M7kjxRr3AHosaOpSy0ZBHece
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org> <289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org> <82db56bfefe57a6c726720660cee3b54$1@sybershock.com> <fc7072fd310f289dd45dff028830235a@www.novabbs.org> <6d2bafdd51830315878e9fde76c3178d$1@sybershock.com>
Organization: Rocksolid Light
Message-ID: <6dbb508c08aa9f24c1ff8b6e7f7a1c0d@www.novabbs.org>
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 - Fri, 19 Jan 2024 11:57 UTC

SugarBug wrote:

> On Thu, 18 Jan 2024 19:39:59 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:

>> SugarBug wrote:
>>
>> > On Thu, 18 Jan 2024 06:50:04 -0700
>> > Retro Guy <retroguy@novabbs.org> wrote:
>>
>> >> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
>> >>
>> >> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>> >> >
>> >> >> On Wed, 17 Jan 2024 18:21:51 +0000
>> >> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>> >> >>
>> >> >>> SugarBug wrote:
>> >> >>>
>> >> >>>> I noticed that with a peer (GRC) that ignores custom
>> >> >>>> Message-ID that a duplicate message is created in the
>> >> >>>> newsgroup.
>> >> >>>
>> >> >>>> Steps:
>> >> >>>
>> >> >>>> 1. Post a message via the local server. The message posts with
>> >> >>>> the Message-ID generated by rslight.
>> >> >>>
>> >> >>>> 2. The remote INN server accepts the message on sync but
>> >> >>>> strips the Message-ID and replaces it with its own
>> >> >>>> Message-ID.
>> >> >>>
>> >> >>>> This should be reproducible by posting to grc.test.
>> >> >>>
>> >> >>>> If the remote server strictly generates its own message-id in
>> >> >>>> place of the provided message-id, rslight is not aware of
>> >> >>>> this. So rslight then stores its original message in the
>> >> >>>> spool with its own Message-ID, then pulls the message from
>> >> >>>> remote containing the remote-generated Message-ID. This
>> >> >>>> results in the same message appearing twice with two
>> >> >>>> Message-ID values.
>> >> >>>
>> >> >>>> Is there any configuration option to get rslight to accept the
>> >> >>>> Message-ID from the remote, or at least discard one of the
>> >> >>>> duplicate messages and refrain from re-copying the duplicate
>> >> >>>> to and from the remote?
>> >> >>>
>> >> >>> Interesting. So the remote server is ignoring the supplied MID
>> >> >>> and creating it's own.
>> >> >>>
>> >> >>> Does the remote server send a reply to state this? If it does,
>> >> >>> rslight could then modify it's MID. If not, we'll need to code
>> >> >>> it to NOT generate a MID for a certain <section>. If it DOES
>> >> >>> send a reply, that would be better. Can you see if it does
>> >> >>> that?
>> >> <snip>
>> >> >>
>> >> >> Two of the test messages generated duplicates. Two did not:
>> >>
>> >> My guess is that two were not inserted immediately and two were.
>> >> The ones not inserted immediately were only inserted after
>> >> receiving back from remote server (so no duplicate).
>> >>
>> >> Rslight will not insert immediately if spoolnews for the specific
>> >> section is running at that moment. In that situation, it will only
>> >> prepare it for send to remote server and wait for it's return.
>> >> (That will explain why some messages do not appear immediately
>> >> after posting)
>>
>> > I ensured the cron job was not running and I posted two messages.
>>
>> > Then I ensured the cron job was running and I posted one message.
>>
>> > I can confirm that a duplicate was created while the cron was
>> > running.
>>
>> Messages won't immediately insert if the specific spoolnews.php for
>> the specific <section> is running. Cron can be running, just not the
>> specific spoolnews.php.
>>
>> > Here are the duplicate message-id headers:
>>
>> > <8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com>
>> > <uobr41$k2l$1@GRC>
>>
>> > Here is the spoolnews entry:
>>
>> > spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article received
>> > <uobr41$k2l$1@GRC> Removed: 1
>>
>> > All three messages were posted using claws-mail. All three messages
>> > were posted to my rslight NNTP server, which then synced to the GRC
>> > test group.
>>
>> Ok, thank you for testing. It does look like anytime a message is
>> immediately inserted, it gets duplicated. I don't see a way around
>> that other than a config option to disable immediate insertion for
>> the section.

> I think you are right in your assessment. Since GRC is opinionated
> about using only its own serialized Message-ID header I don't know of
> any way to tell the remote server to override that behavior. If you
> want to try a config hack I will test it and report back.

I just made a mod to rslight-lib.php and it seems to work fine. It is sending a MID, but doesn't need it for anything, so the message returning with a different MID should be ok.

For a quick test, please add this to the beginning of 'function insert_article' in rslight-lib.php (line 1101):

file_put_contents($logfile, "\n" . format_log_date() . " " . $section . " Insert Disabled... Queuing local post: " . $nntp_group, FILE_APPEND);
$return_val = "240 Article received OK (queued)\r\n";
return ($return_val);

Then kill any running nntp servers and try posting.

It works for me, but let's make sure it's ok and if so, we'll add a config toggle for it.

Here's a nntp.log entry when there is a post:
Jan 19 11:41:51 rocksolid Insert Disabled... Queuing local post: rocksolid.test.test

--
Retro Guy

Re: [rslight] Duplicate Message Question

<8401e19622f302734afaca04cf0d1b66$1@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=881&group=rocksolid.nodes.help#881

  copy link   Newsgroups: rocksolid.nodes.help
Message-ID: <8401e19622f302734afaca04cf0d1b66$1@news.novabbs.org>
Organization: Rocksolid Light
From: retroguy@novabbs.org (Retro Guy)
Subject: Re: [rslight] Duplicate Message Question
Newsgroups: rocksolid.nodes.help
User-Agent: 40tude_Dialog/2.0.15.41
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org> <289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org> <82db56bfefe57a6c726720660cee3b54$1@sybershock.com> <fc7072fd310f289dd45dff028830235a@www.novabbs.org> <6d2bafdd51830315878e9fde76c3178d$1@sybershock.com> <6dbb508c08aa9f24c1ff8b6e7f7a1c0d@www.novabbs.org>
Date: Fri, 19 Jan 2024 04:58:59 -0700
 by: Retro Guy - Fri, 19 Jan 2024 11:58 UTC

On Fri, 19 Jan 2024 11:57:06 +0000, Retro Guy wrote:

> SugarBug wrote:
>
>> On Thu, 18 Jan 2024 19:39:59 +0000
>> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
>>> SugarBug wrote:
>>>
>>> > On Thu, 18 Jan 2024 06:50:04 -0700
>>> > Retro Guy <retroguy@novabbs.org> wrote:
>>>
>>> >> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
>>> >>
>>> >> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>>> >> >
>>> >> >> On Wed, 17 Jan 2024 18:21:51 +0000
>>> >> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>> >> >>
>>> >> >>> SugarBug wrote:
>>> >> >>>
>>> >> >>>> I noticed that with a peer (GRC) that ignores custom
>>> >> >>>> Message-ID that a duplicate message is created in the
>>> >> >>>> newsgroup.
>>> >> >>>
>>> >> >>>> Steps:
>>> >> >>>
>>> >> >>>> 1. Post a message via the local server. The message posts with
>>> >> >>>> the Message-ID generated by rslight.
>>> >> >>>
>>> >> >>>> 2. The remote INN server accepts the message on sync but
>>> >> >>>> strips the Message-ID and replaces it with its own
>>> >> >>>> Message-ID.
>>> >> >>>
>>> >> >>>> This should be reproducible by posting to grc.test.
>>> >> >>>
>>> >> >>>> If the remote server strictly generates its own message-id in
>>> >> >>>> place of the provided message-id, rslight is not aware of
>>> >> >>>> this. So rslight then stores its original message in the
>>> >> >>>> spool with its own Message-ID, then pulls the message from
>>> >> >>>> remote containing the remote-generated Message-ID. This
>>> >> >>>> results in the same message appearing twice with two
>>> >> >>>> Message-ID values.
>>> >> >>>
>>> >> >>>> Is there any configuration option to get rslight to accept the
>>> >> >>>> Message-ID from the remote, or at least discard one of the
>>> >> >>>> duplicate messages and refrain from re-copying the duplicate
>>> >> >>>> to and from the remote?
>>> >> >>>
>>> >> >>> Interesting. So the remote server is ignoring the supplied MID
>>> >> >>> and creating it's own.
>>> >> >>>
>>> >> >>> Does the remote server send a reply to state this? If it does,
>>> >> >>> rslight could then modify it's MID. If not, we'll need to code
>>> >> >>> it to NOT generate a MID for a certain <section>. If it DOES
>>> >> >>> send a reply, that would be better. Can you see if it does
>>> >> >>> that?
>>> >> <snip>
>>> >> >>
>>> >> >> Two of the test messages generated duplicates. Two did not:
>>> >>
>>> >> My guess is that two were not inserted immediately and two were.
>>> >> The ones not inserted immediately were only inserted after
>>> >> receiving back from remote server (so no duplicate).
>>> >>
>>> >> Rslight will not insert immediately if spoolnews for the specific
>>> >> section is running at that moment. In that situation, it will only
>>> >> prepare it for send to remote server and wait for it's return.
>>> >> (That will explain why some messages do not appear immediately
>>> >> after posting)
>>>
>>> > I ensured the cron job was not running and I posted two messages.
>>>
>>> > Then I ensured the cron job was running and I posted one message.
>>>
>>> > I can confirm that a duplicate was created while the cron was
>>> > running.
>>>
>>> Messages won't immediately insert if the specific spoolnews.php for
>>> the specific <section> is running. Cron can be running, just not the
>>> specific spoolnews.php.
>>>
>>> > Here are the duplicate message-id headers:
>>>
>>> > <8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com>
>>> > <uobr41$k2l$1@GRC>
>>>
>>> > Here is the spoolnews entry:
>>>
>>> > spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article received
>>> > <uobr41$k2l$1@GRC> Removed: 1
>>>
>>> > All three messages were posted using claws-mail. All three messages
>>> > were posted to my rslight NNTP server, which then synced to the GRC
>>> > test group.
>>>
>>> Ok, thank you for testing. It does look like anytime a message is
>>> immediately inserted, it gets duplicated. I don't see a way around
>>> that other than a config option to disable immediate insertion for
>>> the section.
>
>> I think you are right in your assessment. Since GRC is opinionated
>> about using only its own serialized Message-ID header I don't know of
>> any way to tell the remote server to override that behavior. If you
>> want to try a config hack I will test it and report back.
>
> I just made a mod to rslight-lib.php and it seems to work fine. It is sending a MID, but doesn't need it for anything, so the message returning with a different MID should be ok.
>
> For a quick test, please add this to the beginning of 'function insert_article' in rslight-lib.php (line 1101):
>
> file_put_contents($logfile, "\n" . format_log_date() . " " . $section . " Insert Disabled... Queuing local post: " . $nntp_group, FILE_APPEND);
> $return_val = "240 Article received OK (queued)\r\n";
> return ($return_val);
>
> Then kill any running nntp servers and try posting.

That should be, 'kill then RESTART any running nntp servers'.

Re: [rslight] Duplicate Message Question

<e8d27327eba2b6724e00424fed0acccb$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=882&group=rocksolid.nodes.help#882

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Duplicate Message Question
Date: Fri, 19 Jan 2024 09:21:49 -0600
Organization: sybershock.com Baggy Jeans Mafia
Message-ID: <e8d27327eba2b6724e00424fed0acccb$1@sybershock.com>
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com>
<e313a86b7f6f95e96080336ccee186d8@news.novabbs.org>
<5078ed39bff031efab8fc6ac56626034$1@sybershock.com>
<df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org>
<289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org>
<82db56bfefe57a6c726720660cee3b54$1@sybershock.com>
<fc7072fd310f289dd45dff028830235a@www.novabbs.org>
<6d2bafdd51830315878e9fde76c3178d$1@sybershock.com>
<6dbb508c08aa9f24c1ff8b6e7f7a1c0d@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="4023334"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: SugarBug - Fri, 19 Jan 2024 15:21 UTC

On Fri, 19 Jan 2024 11:57:06 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> SugarBug wrote:
>
> > On Thu, 18 Jan 2024 19:39:59 +0000
> > retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>
> >> SugarBug wrote:
> >>
> >> > On Thu, 18 Jan 2024 06:50:04 -0700
> >> > Retro Guy <retroguy@novabbs.org> wrote:
> >>
> >> >> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
> >> >>
> >> >> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
> >> >> >
> >> >> >> On Wed, 17 Jan 2024 18:21:51 +0000
> >> >> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
> >> >> >>
> >> >> >>> SugarBug wrote:
> >> >> >>>
> >> >> >>>> I noticed that with a peer (GRC) that ignores custom
> >> >> >>>> Message-ID that a duplicate message is created in the
> >> >> >>>> newsgroup.
> >> >> >>>
> >> >> >>>> Steps:
> >> >> >>>
> >> >> >>>> 1. Post a message via the local server. The message posts
> >> >> >>>> with the Message-ID generated by rslight.
> >> >> >>>
> >> >> >>>> 2. The remote INN server accepts the message on sync but
> >> >> >>>> strips the Message-ID and replaces it with its own
> >> >> >>>> Message-ID.
> >> >> >>>
> >> >> >>>> This should be reproducible by posting to grc.test.
> >> >> >>>
> >> >> >>>> If the remote server strictly generates its own message-id
> >> >> >>>> in place of the provided message-id, rslight is not aware
> >> >> >>>> of this. So rslight then stores its original message in the
> >> >> >>>> spool with its own Message-ID, then pulls the message from
> >> >> >>>> remote containing the remote-generated Message-ID. This
> >> >> >>>> results in the same message appearing twice with two
> >> >> >>>> Message-ID values.
> >> >> >>>
> >> >> >>>> Is there any configuration option to get rslight to accept
> >> >> >>>> the Message-ID from the remote, or at least discard one of
> >> >> >>>> the duplicate messages and refrain from re-copying the
> >> >> >>>> duplicate to and from the remote?
> >> >> >>>
> >> >> >>> Interesting. So the remote server is ignoring the supplied
> >> >> >>> MID and creating it's own.
> >> >> >>>
> >> >> >>> Does the remote server send a reply to state this? If it
> >> >> >>> does, rslight could then modify it's MID. If not, we'll
> >> >> >>> need to code it to NOT generate a MID for a certain
> >> >> >>> <section>. If it DOES send a reply, that would be better.
> >> >> >>> Can you see if it does that?
> >> >> <snip>
> >> >> >>
> >> >> >> Two of the test messages generated duplicates. Two did not:
> >> >> >>
> >> >>
> >> >> My guess is that two were not inserted immediately and two were.
> >> >> The ones not inserted immediately were only inserted after
> >> >> receiving back from remote server (so no duplicate).
> >> >>
> >> >> Rslight will not insert immediately if spoolnews for the
> >> >> specific section is running at that moment. In that situation,
> >> >> it will only prepare it for send to remote server and wait for
> >> >> it's return. (That will explain why some messages do not appear
> >> >> immediately after posting)
> >>
> >> > I ensured the cron job was not running and I posted two
> >> > messages.
> >>
> >> > Then I ensured the cron job was running and I posted one
> >> > message.
> >>
> >> > I can confirm that a duplicate was created while the cron was
> >> > running.
> >>
> >> Messages won't immediately insert if the specific spoolnews.php for
> >> the specific <section> is running. Cron can be running, just not
> >> the specific spoolnews.php.
> >>
> >> > Here are the duplicate message-id headers:
> >>
> >> > <8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com>
> >> > <uobr41$k2l$1@GRC>
> >>
> >> > Here is the spoolnews entry:
> >>
> >> > spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article
> >> > received <uobr41$k2l$1@GRC> Removed: 1
> >>
> >> > All three messages were posted using claws-mail. All three
> >> > messages were posted to my rslight NNTP server, which then
> >> > synced to the GRC test group.
> >>
> >> Ok, thank you for testing. It does look like anytime a message is
> >> immediately inserted, it gets duplicated. I don't see a way around
> >> that other than a config option to disable immediate insertion for
> >> the section.
>
> > I think you are right in your assessment. Since GRC is opinionated
> > about using only its own serialized Message-ID header I don't know
> > of any way to tell the remote server to override that behavior. If
> > you want to try a config hack I will test it and report back.
>
> I just made a mod to rslight-lib.php and it seems to work fine. It is
> sending a MID, but doesn't need it for anything, so the message
> returning with a different MID should be ok.
>
> For a quick test, please add this to the beginning of 'function
> insert_article' in rslight-lib.php (line 1101):
>
> file_put_contents($logfile, "\n" . format_log_date() . " " . $section
> . " Insert Disabled... Queuing local post: " . $nntp_group,
> FILE_APPEND); $return_val = "240 Article received OK (queued)\r\n";
> return ($return_val);
>
> Then kill any running nntp servers and try posting.
>
> It works for me, but let's make sure it's ok and if so, we'll add a
> config toggle for it.
>
> Here's a nntp.log entry when there is a post:
> Jan 19 11:41:51 rocksolid Insert Disabled... Queuing local post:
> rocksolid.test.test

The hack is working on this end. The messages are withheld from the
local spool and interface. The proper message is pulled from the GRC
test group on the next cycle.

nntp.log:Jan 19 15:04:50 grc Insert Disabled... Queuing local post:
grc.test

nntp.log:Jan 19 15:05:01 grc Insert Disabled... Queuing local
post: grc.test

nntp.log:Jan 19 15:10:33 allgroups Insert Disabled... Queuing local
post: _all_tests

nntp.log:Jan 19 15:10:42 allgroups Insert Disabled... Queuing local
post: _all_tests

--
1144@code.bug | sybershock.com | alt.sources.crypto
useful sites (not mine) | novabbs.org | tilde.club | grc.com

Re: [rslight] Duplicate Message Question

<fe7246a00aa84188caeee7d3d760f4ef@www.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=883&group=rocksolid.nodes.help#883

  copy link   Newsgroups: rocksolid.nodes.help
Date: Fri, 19 Jan 2024 18:08:50 +0000
Subject: Re: [rslight] Duplicate Message Question
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$Ns93Q4FFgp9n1b/yXTGqU.MpXVVGb.Ct0IQcbN1j68Ma.bitSowve
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org> <289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org> <82db56bfefe57a6c726720660cee3b54$1@sybershock.com> <fc7072fd310f289dd45dff028830235a@www.novabbs.org> <6d2bafdd51830315878e9fde76c3178d$1@sybershock.com> <6dbb508c08aa9f24c1ff8b6e7f7a1c0d@www.novabbs.org> <e8d27327eba2b6724e00424fed0acccb$1@sybershock.com>
Organization: Rocksolid Light
Message-ID: <fe7246a00aa84188caeee7d3d760f4ef@www.novabbs.org>
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 - Fri, 19 Jan 2024 18:08 UTC

SugarBug wrote:

> On Fri, 19 Jan 2024 11:57:06 +0000
> retro.guy@rocksolidbbs.com (Retro Guy) wrote:

>> SugarBug wrote:
>>
>> > On Thu, 18 Jan 2024 19:39:59 +0000
>> > retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>
>> >> SugarBug wrote:
>> >>
>> >> > On Thu, 18 Jan 2024 06:50:04 -0700
>> >> > Retro Guy <retroguy@novabbs.org> wrote:
>> >>
>> >> >> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
>> >> >>
>> >> >> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>> >> >> >
>> >> >> >> On Wed, 17 Jan 2024 18:21:51 +0000
>> >> >> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>> >> >> >>
>> >> >> >>> SugarBug wrote:
>> >> >> >>>
>> >> >> >>>> I noticed that with a peer (GRC) that ignores custom
>> >> >> >>>> Message-ID that a duplicate message is created in the
>> >> >> >>>> newsgroup.
>> >> >> >>>
>> >> >> >>>> Steps:
>> >> >> >>>
>> >> >> >>>> 1. Post a message via the local server. The message posts
>> >> >> >>>> with the Message-ID generated by rslight.
>> >> >> >>>
>> >> >> >>>> 2. The remote INN server accepts the message on sync but
>> >> >> >>>> strips the Message-ID and replaces it with its own
>> >> >> >>>> Message-ID.
>> >> >> >>>
>> >> >> >>>> This should be reproducible by posting to grc.test.
>> >> >> >>>
>> >> >> >>>> If the remote server strictly generates its own message-id
>> >> >> >>>> in place of the provided message-id, rslight is not aware
>> >> >> >>>> of this. So rslight then stores its original message in the
>> >> >> >>>> spool with its own Message-ID, then pulls the message from
>> >> >> >>>> remote containing the remote-generated Message-ID. This
>> >> >> >>>> results in the same message appearing twice with two
>> >> >> >>>> Message-ID values.
>> >> >> >>>
>> >> >> >>>> Is there any configuration option to get rslight to accept
>> >> >> >>>> the Message-ID from the remote, or at least discard one of
>> >> >> >>>> the duplicate messages and refrain from re-copying the
>> >> >> >>>> duplicate to and from the remote?
>> >> >> >>>
>> >> >> >>> Interesting. So the remote server is ignoring the supplied
>> >> >> >>> MID and creating it's own.
>> >> >> >>>
>> >> >> >>> Does the remote server send a reply to state this? If it
>> >> >> >>> does, rslight could then modify it's MID. If not, we'll
>> >> >> >>> need to code it to NOT generate a MID for a certain
>> >> >> >>> <section>. If it DOES send a reply, that would be better.
>> >> >> >>> Can you see if it does that?
>> >> >> <snip>
>> >> >> >>
>> >> >> >> Two of the test messages generated duplicates. Two did not:
>> >> >> >>
>> >> >>
>> >> >> My guess is that two were not inserted immediately and two were.
>> >> >> The ones not inserted immediately were only inserted after
>> >> >> receiving back from remote server (so no duplicate).
>> >> >>
>> >> >> Rslight will not insert immediately if spoolnews for the
>> >> >> specific section is running at that moment. In that situation,
>> >> >> it will only prepare it for send to remote server and wait for
>> >> >> it's return. (That will explain why some messages do not appear
>> >> >> immediately after posting)
>> >>
>> >> > I ensured the cron job was not running and I posted two
>> >> > messages.
>> >>
>> >> > Then I ensured the cron job was running and I posted one
>> >> > message.
>> >>
>> >> > I can confirm that a duplicate was created while the cron was
>> >> > running.
>> >>
>> >> Messages won't immediately insert if the specific spoolnews.php for
>> >> the specific <section> is running. Cron can be running, just not
>> >> the specific spoolnews.php.
>> >>
>> >> > Here are the duplicate message-id headers:
>> >>
>> >> > <8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com>
>> >> > <uobr41$k2l$1@GRC>
>> >>
>> >> > Here is the spoolnews entry:
>> >>
>> >> > spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article
>> >> > received <uobr41$k2l$1@GRC> Removed: 1
>> >>
>> >> > All three messages were posted using claws-mail. All three
>> >> > messages were posted to my rslight NNTP server, which then
>> >> > synced to the GRC test group.
>> >>
>> >> Ok, thank you for testing. It does look like anytime a message is
>> >> immediately inserted, it gets duplicated. I don't see a way around
>> >> that other than a config option to disable immediate insertion for
>> >> the section.
>>
>> > I think you are right in your assessment. Since GRC is opinionated
>> > about using only its own serialized Message-ID header I don't know
>> > of any way to tell the remote server to override that behavior. If
>> > you want to try a config hack I will test it and report back.
>>
>> I just made a mod to rslight-lib.php and it seems to work fine. It is
>> sending a MID, but doesn't need it for anything, so the message
>> returning with a different MID should be ok.
>>
>> For a quick test, please add this to the beginning of 'function
>> insert_article' in rslight-lib.php (line 1101):
>>
>> file_put_contents($logfile, "\n" . format_log_date() . " " . $section
>> . " Insert Disabled... Queuing local post: " . $nntp_group,
>> FILE_APPEND); $return_val = "240 Article received OK (queued)\r\n";
>> return ($return_val);
>>
>> Then kill any running nntp servers and try posting.
>>
>> It works for me, but let's make sure it's ok and if so, we'll add a
>> config toggle for it.
>>
>> Here's a nntp.log entry when there is a post:
>> Jan 19 11:41:51 rocksolid Insert Disabled... Queuing local post:
>> rocksolid.test.test

> The hack is working on this end. The messages are withheld from the
> local spool and interface. The proper message is pulled from the GRC
> test group on the next cycle.

Great! I will write it up to use a config toggle. I haven't decided yet whether $CONFIG or $OVERRIDES. $CONFIG is more difficult as it requires modifying every <section>.inc.php file if you already have an install, but it still might be better. Not sure yet.

--
Retro Guy

Re: [rslight] Duplicate Message Question

<6bc65a8fea9dab5ae714c91f4bf30325@www.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=884&group=rocksolid.nodes.help#884

  copy link   Newsgroups: rocksolid.nodes.help
Date: Fri, 19 Jan 2024 19:51:48 +0000
Subject: Re: [rslight] Duplicate Message Question
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$1hV.vuVkM69UsuRz5xUFuudDN0c84P0gMD5hTeYHQF4mRjs47SRwq
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org> <289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org> <82db56bfefe57a6c726720660cee3b54$1@sybershock.com> <fc7072fd310f289dd45dff028830235a@www.novabbs.org> <6d2bafdd51830315878e9fde76c3178d$1@sybershock.com> <6dbb508c08aa9f24c1ff8b6e7f7a1c0d@www.novabbs.org> <e8d27327eba2b6724e00424fed0acccb$1@sybershock.com> <fe7246a00aa84188caeee7d3d760f4ef@www.novabbs.org>
Organization: Rocksolid Light
Message-ID: <6bc65a8fea9dab5ae714c91f4bf30325@www.novabbs.org>
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 - Fri, 19 Jan 2024 19:51 UTC

Retro Guy wrote:

> SugarBug wrote:

>> On Fri, 19 Jan 2024 11:57:06 +0000
>> retro.guy@rocksolidbbs.com (Retro Guy) wrote:

>>> SugarBug wrote:
>>>
>>> > On Thu, 18 Jan 2024 19:39:59 +0000
>>> > retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>>
>>> >> SugarBug wrote:
>>> >>
>>> >> > On Thu, 18 Jan 2024 06:50:04 -0700
>>> >> > Retro Guy <retroguy@novabbs.org> wrote:
>>> >>
>>> >> >> On Thu, 18 Jan 2024 06:38:51 -0700, Retro Guy wrote:
>>> >> >>
>>> >> >> > On Thu, 18 Jan 2024 07:13:00 -0600, SugarBug wrote:
>>> >> >> >
>>> >> >> >> On Wed, 17 Jan 2024 18:21:51 +0000
>>> >> >> >> retro.guy@rocksolidbbs.com (Retro Guy) wrote:
>>> >> >> >>
>>> >> >> >>> SugarBug wrote:
>>> >> >> >>>
>>> >> >> >>>> I noticed that with a peer (GRC) that ignores custom
>>> >> >> >>>> Message-ID that a duplicate message is created in the
>>> >> >> >>>> newsgroup.
>>> >> >> >>>
>>> >> >> >>>> Steps:
>>> >> >> >>>
>>> >> >> >>>> 1. Post a message via the local server. The message posts
>>> >> >> >>>> with the Message-ID generated by rslight.
>>> >> >> >>>
>>> >> >> >>>> 2. The remote INN server accepts the message on sync but
>>> >> >> >>>> strips the Message-ID and replaces it with its own
>>> >> >> >>>> Message-ID.
>>> >> >> >>>
>>> >> >> >>>> This should be reproducible by posting to grc.test.
>>> >> >> >>>
>>> >> >> >>>> If the remote server strictly generates its own message-id
>>> >> >> >>>> in place of the provided message-id, rslight is not aware
>>> >> >> >>>> of this. So rslight then stores its original message in the
>>> >> >> >>>> spool with its own Message-ID, then pulls the message from
>>> >> >> >>>> remote containing the remote-generated Message-ID. This
>>> >> >> >>>> results in the same message appearing twice with two
>>> >> >> >>>> Message-ID values.
>>> >> >> >>>
>>> >> >> >>>> Is there any configuration option to get rslight to accept
>>> >> >> >>>> the Message-ID from the remote, or at least discard one of
>>> >> >> >>>> the duplicate messages and refrain from re-copying the
>>> >> >> >>>> duplicate to and from the remote?
>>> >> >> >>>
>>> >> >> >>> Interesting. So the remote server is ignoring the supplied
>>> >> >> >>> MID and creating it's own.
>>> >> >> >>>
>>> >> >> >>> Does the remote server send a reply to state this? If it
>>> >> >> >>> does, rslight could then modify it's MID. If not, we'll
>>> >> >> >>> need to code it to NOT generate a MID for a certain
>>> >> >> >>> <section>. If it DOES send a reply, that would be better.
>>> >> >> >>> Can you see if it does that?
>>> >> >> <snip>
>>> >> >> >>
>>> >> >> >> Two of the test messages generated duplicates. Two did not:
>>> >> >> >>
>>> >> >>
>>> >> >> My guess is that two were not inserted immediately and two were.
>>> >> >> The ones not inserted immediately were only inserted after
>>> >> >> receiving back from remote server (so no duplicate).
>>> >> >>
>>> >> >> Rslight will not insert immediately if spoolnews for the
>>> >> >> specific section is running at that moment. In that situation,
>>> >> >> it will only prepare it for send to remote server and wait for
>>> >> >> it's return. (That will explain why some messages do not appear
>>> >> >> immediately after posting)
>>> >>
>>> >> > I ensured the cron job was not running and I posted two
>>> >> > messages.
>>> >>
>>> >> > Then I ensured the cron job was running and I posted one
>>> >> > message.
>>> >>
>>> >> > I can confirm that a duplicate was created while the cron was
>>> >> > running.
>>> >>
>>> >> Messages won't immediately insert if the specific spoolnews.php for
>>> >> the specific <section> is running. Cron can be running, just not
>>> >> the specific spoolnews.php.
>>> >>
>>> >> > Here are the duplicate message-id headers:
>>> >>
>>> >> > <8b99344ade793ca9dc76e6d34b5e8295$1@sybershock.com>
>>> >> > <uobr41$k2l$1@GRC>
>>> >>
>>> >> > Here is the spoolnews entry:
>>> >>
>>> >> > spoolnews.log:Jan 18 18:36:49 grc Posted: .msg: 240 Article
>>> >> > received <uobr41$k2l$1@GRC> Removed: 1
>>> >>
>>> >> > All three messages were posted using claws-mail. All three
>>> >> > messages were posted to my rslight NNTP server, which then
>>> >> > synced to the GRC test group.
>>> >>
>>> >> Ok, thank you for testing. It does look like anytime a message is
>>> >> immediately inserted, it gets duplicated. I don't see a way around
>>> >> that other than a config option to disable immediate insertion for
>>> >> the section.
>>>
>>> > I think you are right in your assessment. Since GRC is opinionated
>>> > about using only its own serialized Message-ID header I don't know
>>> > of any way to tell the remote server to override that behavior. If
>>> > you want to try a config hack I will test it and report back.
>>>
>>> I just made a mod to rslight-lib.php and it seems to work fine. It is
>>> sending a MID, but doesn't need it for anything, so the message
>>> returning with a different MID should be ok.
>>>
>>> For a quick test, please add this to the beginning of 'function
>>> insert_article' in rslight-lib.php (line 1101):
>>>
>>> file_put_contents($logfile, "\n" . format_log_date() . " " . $section
>>> . " Insert Disabled... Queuing local post: " . $nntp_group,
>>> FILE_APPEND); $return_val = "240 Article received OK (queued)\r\n";
>>> return ($return_val);
>>>
>>> Then kill any running nntp servers and try posting.
>>>
>>> It works for me, but let's make sure it's ok and if so, we'll add a
>>> config toggle for it.
>>>
>>> Here's a nntp.log entry when there is a post:
>>> Jan 19 11:41:51 rocksolid Insert Disabled... Queuing local post:
>>> rocksolid.test.test

>> The hack is working on this end. The messages are withheld from the
>> local spool and interface. The proper message is pulled from the GRC
>> test group on the next cycle.

> Great! I will write it up to use a config toggle. I haven't decided yet whether $CONFIG or $OVERRIDES. $CONFIG is more difficult as it requires modifying every <section>.inc.php file if you already have an install, but it still might be better. Not sure yet.

Decided to go with $OVERRIDES. Example:

// Disable immediate post insertion (wait for remote server)
// for a SECTION. Comma separated list ex: 'rocksolid,section3,section5',
'insert_disable' => 'grc',

So you will be able to disable immediate insertion by <section>.


Click here to read the complete article
Re: [rslight] Duplicate Message Question

<1a07348c4ea91a75fb807cc1f294c8f3@www.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=889&group=rocksolid.nodes.help#889

  copy link   Newsgroups: rocksolid.nodes.help
Date: Sat, 20 Jan 2024 18:50:09 +0000
Subject: Re: [rslight] Duplicate Message Question
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
X-Rslight-Site: $2y$10$GKujMrz1.dyswJDZlJheH.Z8jmZgF9.CUBIcFo1.4f5y9ocGMEs8S
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <176a83fe0a63ab1acad065da3d98da9e$1@sybershock.com> <e313a86b7f6f95e96080336ccee186d8@news.novabbs.org> <5078ed39bff031efab8fc6ac56626034$1@sybershock.com> <df05061eda74e41bf55afe3f928250ff$1@news.novabbs.org> <289b664e4907bc2d3a0e66067f646a8e$1@news.novabbs.org> <82db56bfefe57a6c726720660cee3b54$1@sybershock.com> <fc7072fd310f289dd45dff028830235a@www.novabbs.org> <6d2bafdd51830315878e9fde76c3178d$1@sybershock.com> <6dbb508c08aa9f24c1ff8b6e7f7a1c0d@www.novabbs.org> <e8d27327eba2b6724e00424fed0acccb$1@sybershock.com> <fe7246a00aa84188caeee7d3d760f4ef@www.novabbs.org> <6bc65a8fea9dab5ae714c91f4bf30325@www.novabbs.org>
Organization: Rocksolid Light
Message-ID: <1a07348c4ea91a75fb807cc1f294c8f3@www.novabbs.org>
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 - Sat, 20 Jan 2024 18:50 UTC

Retro Guy wrote:

<snip>

>> Great! I will write it up to use a config toggle. I haven't decided yet whether $CONFIG or $OVERRIDES. $CONFIG is more difficult as it requires modifying every <section>.inc.php file if you already have an install, but it still might be better. Not sure yet.

> Decided to go with $OVERRIDES. Example:

> // Disable immediate post insertion (wait for remote server)
> // for a SECTION. Comma separated list ex: 'rocksolid,section3,section5',
> 'insert_disable' => 'grc',

> So you will be able to disable immediate insertion by <section>.

> It's not done yet, just letting you know my plan.

The latest commit (in devel) should have this change.

Use the config shown above in $config_dir/overrides.php (along with the rest of the file)

--
Retro Guy


computers / Rocksolid Nodes Help / Re: [rslight] Duplicate Message Question

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor