Hi DM,
I was experimenting with the new MsgBase.get_index() function that was added recently and printing the properties & values in the objects to see what was being returned. I'm a little confused on the 'to', 'from', and 'subject' fields in these objects, as those values are numbers. Are those not supposed to be the 'to' and 'from' names and the subject for the message? For instance, this is the first one for my Dove-Net General sub-board:
number: 31191
to: 17496
from: 50642
subject: 23909
attr: 0
offset: 0
time: 1501951866
The SMB index records only contains numbers. For the mail base, the 'to' and 'from' fields of an index record contain the destination and source user numbers, when relevant (0 when the source or destination is a network entity).
For sub-boards, the index record to and from fields contain a hash of the 'to' and 'from' user name or alias. The hash is a CRC-16 of the string's lowercase value.
The subject field of SMB index records always contains a hash (again, CRC-16) of the lowercase version of the message subject - for simple threading purposes, for both mail bases and sub-boards.
More details can be found here, if you're interested: http://synchro.net/docs/smb.html
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 29:31:36 |
Calls: | 10,736 |
Calls today: | 1 |
Files: | 5 |
Messages: | 443,197 |
Posted today: | 1 |