From 946a35c2ca12afa46ccab086dda95b6d9af2070d Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sun, 3 Jan 2021 17:55:11 -0800
Subject: [PATCH] Add 'L' command to run 'msglist.js'

For systems where not everyone wants to use the msglist module.
For DesotoFireflite (VALHALLA)
---
 exec/email_sec.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/exec/email_sec.js b/exec/email_sec.js
index 3be4b788d1..3fdd938353 100644
--- a/exec/email_sec.js
+++ b/exec/email_sec.js
@@ -1,7 +1,5 @@
 // E-mail Section
 
-// $Id: email_sec.js,v 1.10 2020/04/24 08:05:39 rswindell Exp $
-
 // Note: this module replaces the old ### E-mail section ### Baja code in exec/*.src
 // replace "call E-mail" with "exec_bin email_sec"
 
@@ -23,8 +21,11 @@ while(bbs.online && !console.aborted) {
 	bbs.nodesync();
 	console.print("\r\n\1_\1y\1hE-mail: \1n");
 	var wm_mode = WM_NONE;
-	var cmdkeys = "SARUFNKQ?\r";
+	var cmdkeys = "LSARUFNKQ?\r";
 	switch(console.getkeys(cmdkeys,K_UPPER)) {
+		case 'L':	// List/read your mail
+			load({}, "msglist.js", "mail","-preview");
+			break;
 		case 'R':	// Read your mail
 			bbs.read_mail(MAIL_YOUR, user.number);
 			break;
-- 
GitLab