Subj : NNTP and To: field
To   : Digital Man
From : Carlos Navarro
Date : Tue Nov 11 2025 09:29 pm

04 Nov 2025 14:01, you wrote to me:

>> Replies in echomail areas through Synchronet's NNTP server include
>> "All" in the To: field. I had assumed this was standard behavior
>> for SBBS, similar to the old NNTP-FTN gateways. (However, the REPLY
>> kludge appears to be functioning correctly, allowing messages to be
>> properly threaded.)
>>
>> After reviewing the source code of nntpservice.js, I discovered a
>> function named getReferenceTo. If I'm not mistaken, this function
>> should return the recipient's name, but it defaults to "All" when a
>> recipient isn't found.
>>
>> Could it be that this function isn't working as intended?

> If a recipient isn't found, "All" seems like a sensible default. Are
> you saying the failure to find a recipient is a bug? Feel free to play
> with it and offer up a patch if you have one.

I've been playing a bit and here's a patch. Edit nntpservice.js (line 107 in revision 1.2, or line 111 in current 1.3) and change:

var hdr2 = mb.get_msg_header(hdr.reply_id);

to:

var hdr2 = mb.get_msg_header(hdr.reply_id + '');

There may be another way, but this seems to work.

Carlos

--- GoldED+/W32-MSVC 1.1.5-b20180707
* Origin: cyberiada (2:341/234.1)