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

Use/store the new user.mail_settings property

to track the user's preference for reverse-ordering when listing/reading
mail messages. The Un-read mail command still just always uses reverse
ordering.
parent 0b6bc179
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3900 passed
...@@ -27,7 +27,15 @@ while(bbs.online) { ...@@ -27,7 +27,15 @@ while(bbs.online) {
bbs.exec("?msglist.js mail -preview"); bbs.exec("?msglist.js mail -preview");
break; break;
case 'R': // Read your mail case 'R': // Read your mail
bbs.read_mail(MAIL_YOUR, user.number); const MAIL_LM_MODE = LM_REVERSE;
var lm_mode = user.mail_settings & MAIL_LM_MODE;
var new_lm_mode = bbs.read_mail(MAIL_YOUR, user.number, lm_mode) & MAIL_LM_MODE;
if(new_lm_mode != lm_mode) {
if(new_lm_mode & MAIL_LM_MODE)
user.mail_settings |= MAIL_LM_MODE;
else
user.mail_settings &= ~MAIL_LM_MODE;
}
break; break;
case 'U': // Read your un-read mail case 'U': // Read your un-read mail
bbs.read_mail(MAIL_YOUR, user.number, LM_UNREAD|LM_REVERSE); bbs.read_mail(MAIL_YOUR, user.number, LM_UNREAD|LM_REVERSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment