Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
46d526f7
Commit
46d526f7
authored
1 year ago
by
Eric Oulashin
Browse files
Options
Downloads
Patches
Plain Diff
DD Msg Reader: Mark personal email as read if the user is just reading personal email
parent
f689169a
No related branches found
No related tags found
2 merge requests
!463
MRC mods by Codefenix (2024-10-20)
,
!357
DD Msg Reader: Mark personal email as read if the user is just reading personal email
Pipeline
#4859
passed
1 year ago
Stage: build
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
xtrn/DDMsgReader/DDMsgReader.js
+10
-6
10 additions, 6 deletions
xtrn/DDMsgReader/DDMsgReader.js
xtrn/DDMsgReader/readme.txt
+2
-2
2 additions, 2 deletions
xtrn/DDMsgReader/readme.txt
xtrn/DDMsgReader/revision_history.txt
+2
-0
2 additions, 0 deletions
xtrn/DDMsgReader/revision_history.txt
with
14 additions
and
8 deletions
xtrn/DDMsgReader/DDMsgReader.js
+
10
−
6
View file @
46d526f7
...
@@ -48,6 +48,8 @@
...
@@ -48,6 +48,8 @@
* Fix in reader mode for refreshing the message area after
* Fix in reader mode for refreshing the message area after
* closing another window (necessary with recent changes to
* closing another window (necessary with recent changes to
* substrWithAttrCodes())
* substrWithAttrCodes())
* 2023-11-01 Eric Oulashin Version 1.85
* Mark personal email as read if the user is just reading personal email
*/
*/
"use strict";
"use strict";
...
@@ -152,8 +154,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a');
...
@@ -152,8 +154,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a');
// Reader version information
// Reader version information
var READER_VERSION = "1.8
4
";
var READER_VERSION = "1.8
5
";
var READER_DATE = "2023-1
0-26
";
var READER_DATE = "2023-1
1-01
";
// 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);
...
@@ -4856,10 +4858,9 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea)
...
@@ -4856,10 +4858,9 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea)
retObj.msgNotReadable = !isReadableMsgHdr(msgHeader, this.subBoardCode);
retObj.msgNotReadable = !isReadableMsgHdr(msgHeader, this.subBoardCode);
if (retObj.msgNotReadable)
if (retObj.msgNotReadable)
return retObj;
return retObj;
// Mark the message as read if it was written to the current user
// Mark the message as read if reading personal email or if it was written to the current user
var personalEmailToCurrentSysopUser = this.readingPersonalEmail && user.is_sysop && msgHeader.to.toUpperCase().indexOf("SYSOP") == 0;
if (this.readingPersonalEmail || ((msgHeader.attr & MSG_READ) == 0) && (userHandleAliasNameMatch(msgHeader.to)))
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.
...
@@ -4867,6 +4868,9 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea)
...
@@ -4867,6 +4868,9 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea)
if (this.SearchTypePopulatesSearchResults() && saveRetObj.saveSucceeded)
if (this.SearchTypePopulatesSearchResults() && saveRetObj.saveSucceeded)
this.RefreshHdrInSavedArrays(pOffset, MSG_READ, true);
this.RefreshHdrInSavedArrays(pOffset, MSG_READ, true);
}
}
// For personal email, if we wanted to really check that it was written to the current sysop user:
//var personalEmailToCurrentSysopUser = this.readingPersonalEmail && user.is_sysop && msgHeader.to.toUpperCase().indexOf("SYSOP") == 0;
//if (((msgHeader.attr & MSG_READ) == 0) && (userHandleAliasNameMatch(msgHeader.to) || personalEmailToCurrentSysopUser))
// Updating message pointers etc.
// Updating message pointers etc.
updateScanPtrAndOrLastRead(this.subBoardCode, msgHeader, this.doingMsgScan);
updateScanPtrAndOrLastRead(this.subBoardCode, msgHeader, this.doingMsgScan);
...
...
This diff is collapsed.
Click to expand it.
xtrn/DDMsgReader/readme.txt
+
2
−
2
View file @
46d526f7
Digital Distortion Message Reader
Digital Distortion Message Reader
Version 1.8
4
Version 1.8
5
Release date: 2023-1
0-26
Release date: 2023-1
1-01
by
by
...
...
This diff is collapsed.
Click to expand it.
xtrn/DDMsgReader/revision_history.txt
+
2
−
0
View file @
46d526f7
...
@@ -5,6 +5,8 @@ Revision History (change log)
...
@@ -5,6 +5,8 @@ Revision History (change log)
=============================
=============================
Version Date Description
Version Date Description
------- ---- -----------
------- ---- -----------
1.85 2023-11-01 Mark personal email as read if the user is just reading
personal email
1.84 2023-10-26 Fix in reader mode for refreshing the message area after
1.84 2023-10-26 Fix in reader mode for refreshing the message area after
closing another window (necessary with recent changes to
closing another window (necessary with recent changes to
substrWithAttrCodes())
substrWithAttrCodes())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment