Hello, MBSE Developer Team,
I have found and fixed a bug related to the Delete_Msg and Delete_MsgNum functions found in mail.c where a user can only delete own messages if he is the sender, but not if he is the recipient of a message. But both should be valid criteria to allow deletion.
1.) Steps to reproduce:
2.) Root cause analysis:
3.) Solution:
Line 1577 of mail.c:
if ((msgs.UsrDelete && (IsMe(Msg.From) || IsMe(Msg.To))) || (exitinfo.Security.level >= CFG.sysop_access) ||
Access(exitinfo.Security, msgs.SYSec)) {
Line 2008 of mail.c:
if ( (msgs.UsrDelete && (IsMe(Msg.From) || IsMe(Msg.To))) || (exitinfo.Security.level >= CFG.sysop_access) ||
Access(exitinfo.Security, msgs.SYSec)) {
fixed in svn and vers -> 1.0.8.6