Subj : SCAN_CFG_TOYOU vs SCAN_CFG_YONLY To : Nightfox From : Digital Man Date : Mon Mar 09 2015 08:33 pm Re: SCAN_CFG_TOYOU vs SCAN_CFG_YONLY By: Nightfox to All on Wed Mar 04 2015 07:35 pm > 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) scan is configured with the '&N' command (again, classic shell). The (S) scan is configured with the '&S' command. 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) I hope that helps. Let me know if you need more details. digital man Synchronet "Real Fact" #28: Rob Swindell first called BBSes (at 300bps) with an Apple II computer in 1982. Norco, CA WX: 61.7øF, 73.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrs .