Skip to content
Snippets Groups Projects
Commit 2cc802e8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'dd_msg_reader_reading_mail_only_mark_to_user_read' into 'master'

DDMsgReader: When reading messages (including sent email), only mark it read if it's to the current user. Reported by Accession.

See merge request !521
parents 8a5fedc2 f890458d
Branches
No related tags found
1 merge request!521DDMsgReader: When reading messages (including sent email), only mark it read if it's to the current user. Reported by Accession.
Pipeline #8774 passed
...@@ -231,6 +231,10 @@ ...@@ -231,6 +231,10 @@
* 2025-02-08 Eric Oulashin Version 1.96L * 2025-02-08 Eric Oulashin Version 1.96L
* After replying to a message, when it shows the status & pauses * After replying to a message, when it shows the status & pauses
* for input, a Q or Ctrl-C will now exit, and not be ignored. * for input, a Q or Ctrl-C will now exit, and not be ignored.
* 2025-05-28 Eric Oulashin Version 1.96M
* When reading messages, only mark it as read if it's to
* the current user, including for personal email (i.e., when reading
* sent mail, don't mark messages to others as read).
*/ */
   
"use strict"; "use strict";
...@@ -338,8 +342,8 @@ var hexdump = load('hexdump_lib.js'); ...@@ -338,8 +342,8 @@ var hexdump = load('hexdump_lib.js');
   
   
// Reader version information // Reader version information
var READER_VERSION = "1.96L"; var READER_VERSION = "1.96M";
var READER_DATE = "2025-02-18"; var READER_DATE = "2025-03-28";
   
// 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);
...@@ -5610,8 +5614,8 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea) ...@@ -5610,8 +5614,8 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea)
if (retObj.msgNotReadable) if (retObj.msgNotReadable)
return retObj; return retObj;
   
// Mark the message as read if reading personal email or if it was written to the current user // Mark the message as read if it was written to the current user
if (this.readingPersonalEmail || ((msgHeader.attr & MSG_READ) == 0) && (userHandleAliasNameMatch(msgHeader.to))) if (userHandleAliasNameMatch(msgHeader.to))
{ {
// 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.
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// If you have DDMsgReader in a directory other than xtrn/DDMsgReader, then the changes to // If you have DDMsgReader in a directory other than xtrn/DDMsgReader, then the changes to
// DDMsgReader.cfg will be saved in that directory (assuming you're running ddmr_cfg.js from // DDMsgReader.cfg will be saved in that directory (assuming you're running ddmr_cfg.js from
// that same directory). // that same directory).
// Currently for DDMsgReader 1.96L. // Currently for DDMsgReader 1.96M.
// //
// If you're running DDMsgReader from xtrn/DDMsgReader (the standard location) and you want // If you're running DDMsgReader from xtrn/DDMsgReader (the standard location) and you want
// to save the configuration file there (rather than sbbs/mods), you can use one of the // to save the configuration file there (rather than sbbs/mods), you can use one of the
...@@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE"); ...@@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE");
require("uifcdefs.js", "UIFC_INMSG"); require("uifcdefs.js", "UIFC_INMSG");
if (!uifc.init("DigDist. Message Reader 1.96L Configurator")) if (!uifc.init("DigDist. Message Reader 1.96M Configurator"))
{ {
print("Failed to initialize uifc"); print("Failed to initialize uifc");
exit(1); exit(1);
......
Digital Distortion Message Reader Digital Distortion Message Reader
Version 1.96L Version 1.96M
Release date: 2025-02-18 Release date: 2025-03-28
by by
......
...@@ -5,6 +5,8 @@ Revision History (change log) ...@@ -5,6 +5,8 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
1.96M 2025-03-28 When reading messages, only mark it as read if it's to the
current user, including when reading sent email.
1.96L 2025-02-18 After replying to a message, when it shows the status & 1.96L 2025-02-18 After replying to a message, when it shows the status &
pauses for input, a Q or Ctrl-C will now exit, and not be pauses for input, a Q or Ctrl-C will now exit, and not be
ignored. ignored.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment