• MSG_READ attribute and saving message headers

    From Nightfox@VERT/DIGDIST to Digital Man on Saturday, March 14, 2015 12:45:14
    Hi DM,

    I'm working on a message reader in JavaScript and am wondering about a couple things regarding the MSG_READ attribute:
    - When marking a message as read, does it make sense to do so only if the message is written to the logged-in user who is reading the message?
    - To enable the MSG_READ attribute for a message, is this the proper way to do that (assuming msgHeader is the header object and msgbase is the message base object):
    msgHeader.attr |= MSG_READ;
    msgbase.put_msg_header(true, msgHeader.offset, msgHeader);

    Nightfox

    ---
    þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Monday, March 16, 2015 12:45:47
    Re: MSG_READ attribute and saving message headers
    By: Nightfox to Digital Man on Sat Mar 14 2015 12:45 pm

    Hi DM,

    I'm working on a message reader in JavaScript and am wondering about a couple things regarding the MSG_READ attribute:
    - When marking a message as read, does it make sense to do so only if the message is written to the logged-in user who is reading the message?

    Yes.

    - To enable the MSG_READ attribute for a message, is this the proper way to do that (assuming msgHeader is the header object and msgbase is the message base object):
    msgHeader.attr |= MSG_READ;
    msgbase.put_msg_header(true, msgHeader.offset, msgHeader);

    Yes.

    digital man

    Synchronet "Real Fact" #76:
    Rob Swindell still has dozens of BBS-related magazines in his possession. Norco, CA WX: 85.5øF, 13.0% humidity, 8 mph NW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Monday, March 16, 2015 20:31:26
    Re: MSG_READ attribute and saving message headers
    By: Digital Man to Nightfox on Mon Mar 16 2015 12:45:47

    - When marking a message as read, does it make sense to do so only if
    the message is written to the logged-in user who is reading the
    message?

    Yes.

    - To enable the MSG_READ attribute for a message, is this the proper
    way to do that (assuming msgHeader is the header object and msgbase is
    the message base object):
    msgHeader.attr |= MSG_READ;
    msgbase.put_msg_header(true, msgHeader.offset, msgHeader);

    Yes.

    Thanks.

    Nightfox

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