Subj : NNTP and To: field
To : Carlos Navarro
From : Digital Man
Date : Fri Nov 14 2025 12:03 pm
Re: NNTP and To: field
By: Carlos Navarro to Digital Man on Thu Nov 13 2025 06:08 pm
> 12 Nov 2025 23:21, you wrote to me:
>
> > I just wrote and executed a quick test and the msg header reply_id
> > property does appear to be a string, as expected:
>
> > var msgbase = new MsgBase("test");
> > if(!msgbase.open())
> > exit();
> > var hdr = msgbase.get_msg_header(27);
> > print(typeof hdr.reply_id);
>
> > when run, prints 'string'.
>
> Ok, in that script nothing happens to hdr after loading from the MSGbase.
> But in nntpservice.js, before being passed to function getReferenceTo, it is
> processed by function parse_news_header (in newsutil.js). It seems
> hdr.reply_id is then an array of string (typeof "object"). I think it
> happens here:
>
> hdr.reply_id = data.match(/<[^\<]*>$/);
Thank you!
Looks like a bug introduced in
https://gitlab.synchro.net/main/sbbs/-/commit/9bf86ab10c206945417c45d98f09
I'll fix that right up and appreciate your testing and detailed feedback!
--
digital man (rob)
Steven Wright quote #10:
The early bird may get the worm, but the second mouse gets the cheese.
Norco, CA WX: 59.8�F, 90.0% humidity, 0 mph WNW wind, 0.09 inches rain/24hrs