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);
- 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.
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 104 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 19:57:21 |
| Calls: | 7,088 |
| Calls today: | 7 |
| Files: | 9,223 |
| D/L today: |
180 files (25,907K bytes) |
| Messages: | 374,152 |