Skip to content
Snippets Groups Projects
Commit 827a1a03 authored by Eric Oulashin's avatar Eric Oulashin
Browse files

Personal email - for messages to 'sysop', actually check that the user is a...

Personal email - for messages to 'sysop', actually check that the user is a sysop before marking it as read
parent c9a98306
Branches
Tags
1 merge request!353DDMsgReader: Personal emails addressed to 'sysop' (or starting with 'sysop') now marked as read properly
Pipeline #4825 passed
......@@ -4854,7 +4854,7 @@ function DigDistMsgReader_ReadMessageEnhanced(pOffset, pAllowChgArea)
return retObj;
// Mark the message as read if it was written to the current user
var personalEmailToCurrentSysopUser = this.readingPersonalEmail && msgHeader.to.toUpperCase().indexOf("SYSOP") == 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment