Skip to content
Snippets Groups Projects
Commit e90b3b02 authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgReader: Personal emails addressed to 'sysop' (or starting with 'sysop')...

DDMsgReader: Personal emails addressed to 'sysop' (or starting with 'sysop') now marked as read properly
parent da320721
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!353DDMsgReader: Personal emails addressed to 'sysop' (or starting with 'sysop') now marked as read properly
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
* Updated permission check functions (speed improvement) * Updated permission check functions (speed improvement)
* 2023-10-18 Eric Oulashin Version 1.82 * 2023-10-18 Eric Oulashin Version 1.82
* Fix for # posts and missing dates in sub-board list when changing sub-board * Fix for # posts and missing dates in sub-board list when changing sub-board
* 2023-10-25 Eric Oulashin Version 1.83
* Personal emails to the sysop received as "sysop" (or starting with "sysop")
* are now correctly identified and marked as read when read
*/ */
   
"use strict"; "use strict";
...@@ -145,8 +148,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a'); ...@@ -145,8 +148,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a');
   
   
// Reader version information // Reader version information
var READER_VERSION = "1.82"; var READER_VERSION = "1.83";
var READER_DATE = "2023-10-18"; var READER_DATE = "2023-10-25";
   
// Keyboard key codes for displaying on the screen // Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
...@@ -255,7 +258,7 @@ var BLOCK1 = "\xB0"; // Dimmest block ...@@ -255,7 +258,7 @@ var BLOCK1 = "\xB0"; // Dimmest block
var BLOCK2 = "\xB1"; var BLOCK2 = "\xB1";
var BLOCK3 = "\xB2"; var BLOCK3 = "\xB2";
var BLOCK4 = "\xDB"; // Brightest block var BLOCK4 = "\xDB"; // Brightest block
var MID_BLOCK = ascii(220); var MID_BLOCK = ascii(254);
var TALL_UPPER_MID_BLOCK = "\xFE"; var TALL_UPPER_MID_BLOCK = "\xFE";
var UPPER_CENTER_BLOCK = "\xDF"; var UPPER_CENTER_BLOCK = "\xDF";
var LOWER_CENTER_BLOCK = "\xDC"; var LOWER_CENTER_BLOCK = "\xDC";
...@@ -4851,7 +4854,8 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea) ...@@ -4851,7 +4854,8 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea)
return retObj; return retObj;
// Mark the message as read if it was written to the current user // Mark the message as read if it was written to the current user
if (userHandleAliasNameMatch(msgHeader.to) && ((msgHeader.attr & MSG_READ) == 0)) var personalEmailToCurrentSysopUser = this.readingPersonalEmail && user.is_sysop && msgHeader.to.toUpperCase().indexOf("SYSOP") == 0;
if (((msgHeader.attr & MSG_READ) == 0) && (userHandleAliasNameMatch(msgHeader.to) || personalEmailToCurrentSysopUser))
{ {
// Using applyAttrsInMsgHdrInMessagbase(), which loads the header without // Using applyAttrsInMsgHdrInMessagbase(), which loads the header without
// expanded fields and saves the attributes with that header. // expanded fields and saves the attributes with that header.
......
Digital Distortion Message Reader Digital Distortion Message Reader
Version 1.82 Version 1.83
Release date: 2023-10-18 Release date: 2023-10-25
by by
......
...@@ -5,6 +5,9 @@ Revision History (change log) ...@@ -5,6 +5,9 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
1.83 2023-10-25 Personal emails to the sysop received as "sysop" (or
starting with "sysop") are now correctly identified and
marked as read when read
1.82 2023-10-18 Fix for # posts and missing dates in sub-board list when 1.82 2023-10-18 Fix for # posts and missing dates in sub-board list when
changing sub-board changing sub-board
1.81 2023-10-11 Updated permission check functions (speed improvement) 1.81 2023-10-11 Updated permission check functions (speed improvement)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment