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.
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
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).
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 88 |
Nodes: | 16 (0 / 16) |
Uptime: | 12:19:46 |
Calls: | 4,921 |
Calls today: | 7 |
Files: | 8,491 |
Messages: | 351,012 |