• get_index() - Fields in the objects returned

    From Nightfox@VERT/DIGDIST to Digital Man on Thu Apr 11 02:50:21 2019
    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

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Thu Apr 11 11:26:06 2019
    Re: get_index() - Fields in the objects returned
    By: Nightfox to Digital Man on Wed Apr 10 2019 07:50 pm

    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

    digital man

    Synchronet/BBS Terminology Definition #42:
    KD = King Drafus (Allen Christiansen)
    Norco, CA WX: 56.3øF, 39.0% humidity, 0 mph SW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Thu Apr 11 17:44:06 2019
    Re: get_index() - Fields in the objects returned
    By: Digital Man to Nightfox on Thu Apr 11 2019 04:26 am

    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

    I see, thanks.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com