BBS:      TELESC.NET.BR
Assunto:  Differing origin lines fr
De:       Digital Man
Data:     Sun, 22 Feb 2026 20:49:00 -0800
-----------------------------------------------------------
  hbRenb: hcDiffering origin lines from Vertrauen on Dove-Net
  bBynb: hcNightfox bto cDigital Man bon cSun Feb 22 2026 01:57 pmn

 >   HBReNB: HCDiffering origin lines from Vertrauen on Dove-Net
 >   BByNB: HCDigital Man Bto CNightfox Bon CSat Feb 21 2026 06:12 pm
N >
 >  DM> msglist.js doesn't rely on putmsg() to do the word-wrapping and instead
 >  DM> calls the JS global function word_wrap(), but only when appropriate. It
 >  DM> likely should *not* be using this to word-wrap the message tails, but
 >  DM> it currently treats the tails as just part of the message body (and so
 >  DM> they go through word-wrap too).
 >
 >  >> I'm not having Vertrauen do word-wrapping; I'm doing that on my side.
 >
 >  DM> How are you doing the word wrap on your side - calling the JS global
 >  DM> word_wrap() or your own functions?
 >
 > I'm using word_wrap().
 >
 >  DM> Sure, or you can check and confirm that the messages in question all
 >  DM> have 2 data fields each (a separate body and tail), e.g.
 >
 >  DM> data_field[0]    TEXT_BODY, offset 0, length 1181 data_field[1]
 >  DM> TEXT_TAIL, offset 1181, length 71
 >
 > Yes, they have those 2 fields.
 >
 > I'm curious how you determine what's a tail and what the message body is?
 > When you get a message body from the messagebase in JS, it always looked to
 > me like it returns all of that (including the tails?) as part of the message
 > body.  If you examine data_fields and see the TEXT_BODY and TEXT_TAIL
 > entries, does the 'offset' specify the index in the message body where it
 > starts?

The offset species the byte offset into the data record for the message, but that's abstracted away in JS. In JS, you get just the message body by calling MsgBase.get_msg_body() with the 'include_tails' argument passed as 'false' and then call get_msg_tail() to get the tail(s) if you want them.
-- 
                                            HYdigital man n(rob)

Rush quote #61:
He's a rebel and a runner, he's a signal turning green .. New World Man
Norco, CA WX: 60.5F, 44.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs
n---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]