I was looking at the message scan values & scan config values in sbbsdefs.js
var SCAN_CFG_TOYOU=(1<<1); /* Auto-scan for unread messages to you*/
var SCAN_CFG_YONLY=(1<<8); /* Auto-scan for new messages to you only*/
Lets guess!
var SCAN_CFG_TOYOU=(1<<1); /* Auto-scan for unread messages to you*/
Messages sent to ALL or multiple users including you?
I was looking at the message scan values & scan config values in sbbsdefs.js and am wondering what the difference is between SCAN_CFG_TOYOU and SCAN_CFG_YONLY? The comments say SCAN_CFG_TOYOU is "Auto-scan for unread messages to you" and SCAN_CFG_YONLY is "Auto-scan for new messsages to you only" - Both of those sound like they could be the same.. I'm not clear on the difference based on those comments:
/********************************************/
/* Bits in msg_area.sub[].scan_cfg*/
/********************************************/
var SCAN_CFG_NEW=5; /* Auto-scan for new messages*/
var SCAN_CFG_TOYOU=(1<<1); /* Auto-scan for unread messages to you*/
var SCAN_CFG_YONLY=(1<<8); /* Auto-scan for new messages to you only*/
In Synchronet, there are 2 types of message scans:
(N)ew message scan (the 'N' command from the main menu of the classic shell) (S)can for msgs to you (the 'S' command from the main menu)
The (N) scan uses "new msg pointers" to find an display new messages while the (S) scan checks the 'read flag' on messages address to *you* (regardless of any "new-scan" pointer value).
The &N command can be used to change each sub-boards "new-scan" config to one of 3 possible values: off, new msgs, new msgs to you only. These settings correspond to these values (for each user for each sub-board):
Off: bits 0, 2, and 8 off
New-msgs: Bits 0 and 2 (SCAN_CFG_NEW))
New-msgs-to-you-only: Bits 0, 2, and 8 (SCAN_CFG_NEW|SCFG_CFG_YONLY)
The &S command can be used to change each sub-boards "your-scan" config to one of 2 possible values: off and on. These settings correspond to these values (for each user for each sub-board):
Off: (Bit 1 off)
On: (Bit 1 on, SCAN_CFG_TOYOU)
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 583 |
Nodes: | 8 (0 / 8) |
Uptime: | 06:03:37 |
Calls: | 10,746 |
Calls today: | 1 |
Files: | 5 |
Messages: | 447,082 |