• Message attributes

    From Nightfox@VERT/DIGDIST to All on Thu Jan 1 14:04:41 2015
    Hi all,

    When I get a message header, I know the 'attr' property can be tested against these values in sbbsdefs.js to see which attributes are set:
    /* Message attributes */
    var MSG_PRIVATE =(1<<0);
    var MSG_READ=(1<<1);
    var MSG_PERMANENT=(1<<2);
    var MSG_LOCKED=(1<<3);
    var MSG_DELETE=(1<<4);
    var MSG_ANONYMOUS=(1<<5);
    var MSG_KILLREAD=(1<<6);
    var MSG_MODERATED=(1<<7);
    var MSG_VALIDATED=(1<<8);
    var MSG_REPLIED=(1<<9);// User replied to this message
    var MSG_NOREPLY=(1<<10);// No replies (or bounces) should be sent to the sender

    I also see a section right below those in sbbsdefs.js that say "Auxiliary header attributes" and "Message network attributes", and those have some of the same values as the message attributes. Are there different fields in a message header object that can be tested for those?

    These are the values I see in sbbsdefs.js:
    /* Auxillary header attributes */
    var MSG_FILEREQUEST =(1<<0); // File request
    var MSG_FILEATTACH=(1<<1); // File(s) attached to Msg
    var MSG_TRUNCFILE=(1<<2); // Truncate file(s) when sent
    var MSG_KILLFILE=(1<<3); // Delete file(s) when sent
    var MSG_RECEIPTREQ=(1<<4); // Return receipt requested
    var MSG_CONFIRMREQ=(1<<5); // Confirmation receipt requested
    var MSG_NODISP=(1<<6); // Msg may not be displayed to user

    /* Message network attributes */
    var MSG_LOCAL=(1<<0); // Msg created locally
    var MSG_INTRANSIT=(1<<1); // Msg is in-transit
    var MSG_SENT=(1<<2); // Sent to remote
    var MSG_KILLSENT=(1<<3); // Kill when sent
    var MSG_ARCHIVESENT =(1<<4); // Archive when sent
    var MSG_HOLD=(1<<5); // Hold for pick-up
    var MSG_CRASH=(1<<6); // Crash
    var MSG_IMMEDIATE=(1<<7); // Send Msg now, ignore restrictions
    var MSG_DIRECT=(1<<8); // Send directly to destination
    var MSG_GATE=(1<<9); // Send via gateway
    var MSG_ORPHAN=(1<<10); // Unknown destination
    var MSG_FPU =(1<<11); // Force pickup
    var MSG_TYPELOCAL=(1<<12); // Msg is for local use only
    var MSG_TYPEECHO=(1<<13); // Msg is for conference distribution
    var MSG_TYPENET =(1<<14); // Msg is direct network mail

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS - digitaldistortionbbs.com
  • From echicken to Nightfox on Thu Jan 1 18:14:27 2015
    Re: Message attributes
    By: Nightfox to All on Thu Jan 01 2015 09:04:41

    When I get a message header, I know the 'attr' property can be tested against these values in sbbsdefs.js to see which attributes are set:

    I also see a section right below those in sbbsdefs.js that say "Auxiliary header attributes" and "Message network attributes", and those have some of the same values as the message attributes. Are there different fields in a message header object that can be tested for those?

    A header object has 'auxattr' and 'netattr' properties as well. See
    docs on MsgBase.save_msg for more.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
  • From Nightfox@VERT/DIGDIST to echicken on Thu Jan 1 18:17:10 2015
    Re: Message attributes
    By: echicken to Nightfox on Thu Jan 01 2015 13:14:27

    A header object has 'auxattr' and 'netattr' properties as well. See
    docs on MsgBase.save_msg for more.

    I see, thanks.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion BBS - digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Thu Jan 1 22:35:37 2015
    Re: Message attributes
    By: Nightfox to All on Thu Jan 01 2015 09:04 am

    Hi all,

    When I get a message header, I know the 'attr' property can be tested against these values in sbbsdefs.js to see which attributes are set:
    /* Message attributes */
    var MSG_PRIVATE =(1<<0);
    var MSG_READ=(1<<1);
    var MSG_PERMANENT=(1<<2);
    var MSG_LOCKED=(1<<3);
    var MSG_DELETE=(1<<4);
    var MSG_ANONYMOUS=(1<<5);
    var MSG_KILLREAD=(1<<6);
    var MSG_MODERATED=(1<<7);
    var MSG_VALIDATED=(1<<8);
    var MSG_REPLIED=(1<<9);// User replied to this message
    var MSG_NOREPLY=(1<<10);// No replies (or bounces) should be sent to the sender

    I also see a section right below those in sbbsdefs.js that say "Auxiliary header attributes" and "Message network attributes", and those have some of the same values as the message attributes. Are there different fields in a message header object that can be tested for those?

    Different header properties, yes.

    These are the values I see in sbbsdefs.js:
    /* Auxillary header attributes */
    var MSG_FILEREQUEST =(1<<0); // File request
    var MSG_FILEATTACH=(1<<1); // File(s) attached to Msg
    var MSG_TRUNCFILE=(1<<2); // Truncate file(s) when sent
    var MSG_KILLFILE=(1<<3); // Delete file(s) when sent
    var MSG_RECEIPTREQ=(1<<4); // Return receipt requested
    var MSG_CONFIRMREQ=(1<<5); // Confirmation receipt requested
    var MSG_NODISP=(1<<6); // Msg may not be displayed to user

    Those flags apply to the header 'auxattr' property.

    /* Message network attributes */
    var MSG_LOCAL=(1<<0); // Msg created locally
    var MSG_INTRANSIT=(1<<1); // Msg is in-transit
    var MSG_SENT=(1<<2); // Sent to remote
    var MSG_KILLSENT=(1<<3); // Kill when sent
    var MSG_ARCHIVESENT =(1<<4); // Archive when sent
    var MSG_HOLD=(1<<5); // Hold for pick-up
    var MSG_CRASH=(1<<6); // Crash
    var MSG_IMMEDIATE=(1<<7); // Send Msg now, ignore restrictions
    var MSG_DIRECT=(1<<8); // Send directly to destination
    var MSG_GATE=(1<<9); // Send via gateway
    var MSG_ORPHAN=(1<<10); // Unknown destination
    var MSG_FPU =(1<<11); // Force pickup
    var MSG_TYPELOCAL=(1<<12); // Msg is for local use only
    var MSG_TYPEECHO=(1<<13); // Msg is for conference distribution
    var MSG_TYPENET =(1<<14); // Msg is direct network mail

    These flags apply to the header 'netattr' property (most are never set/used).

    digital man

    Synchronet "Real Fact" #31:
    The second most prolific contributor to Synchronet is Stephen Hurd (Deuce). Norco, CA WX: 50.0°F, 47.0% humidity, 0 mph ESE wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri Jan 2 02:32:23 2015
    Re: Message attributes
    By: Digital Man to Nightfox on Thu Jan 01 2015 17:35:37

    Different header properties, yes.

    Those flags apply to the header 'auxattr' property.

    These flags apply to the header 'netattr' property (most are never set/used).

    I see, thanks.

    Nightfox

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