This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 399e3ed Drop unread variables and narrow scope
399e3ed is described below
commit 399e3ed777bfa0936808b894effd14275389c60d
Author: Sebb <[email protected]>
AuthorDate: Wed Nov 17 23:15:03 2021 +0000
Drop unread variables and narrow scope
---
webui/js/ponymail.js | 10 +++-------
webui/js/source/composer.js | 8 ++------
2 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 738224a..29efef4 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -16,7 +16,7 @@
*/
// THIS IS AN AUTOMATICALLY COMBINED FILE. PLEASE EDIT source/*.js!!
-const PONYMAIL_REVISION = "35b7658";
+const PONYMAIL_REVISION = "7d8e568";
@@ -598,10 +598,7 @@ function toggle_quote(el) {
Fetched from source/composer.js
******************************************/
-let mua_trigger = 'mailto:';
-let mua_list = null;
-let mua_mid = null;
-let mua_headers = {};
+let mua_headers = {}; // communication between compose_email and compose_send
function compose_send() {
let content = [];
@@ -626,6 +623,7 @@ function compose_send() {
function compose_email(replyto, list) {
let email = null;
+ let mua_trigger = null;
let loggedIn = (ponymail_preferences.login &&
ponymail_preferences.login.credentials) ? true : false;
if (replyto) email = full_emails[replyto || ''];
let listname = list;
@@ -639,9 +637,7 @@ function compose_email(replyto, list) {
} else {
mua_trigger = mua_link(null, listname);
}
- mua_list = listname;
mua_headers.to = listname;
- mua_mid = email ? email['message-id'] : null;
// Not logged in? MUA it is, then!
if (!loggedIn) {
diff --git a/webui/js/source/composer.js b/webui/js/source/composer.js
index 0ea30a8..00d9f19 100644
--- a/webui/js/source/composer.js
+++ b/webui/js/source/composer.js
@@ -1,7 +1,4 @@
-let mua_trigger = 'mailto:';
-let mua_list = null;
-let mua_mid = null;
-let mua_headers = {};
+let mua_headers = {}; // communication between compose_email and compose_send
function compose_send() {
let content = [];
@@ -26,6 +23,7 @@ function compose_send() {
function compose_email(replyto, list) {
let email = null;
+ let mua_trigger = null;
let loggedIn = (ponymail_preferences.login &&
ponymail_preferences.login.credentials) ? true : false;
if (replyto) email = full_emails[replyto || ''];
let listname = list;
@@ -39,9 +37,7 @@ function compose_email(replyto, list) {
} else {
mua_trigger = mua_link(null, listname);
}
- mua_list = listname;
mua_headers.to = listname;
- mua_mid = email ? email['message-id'] : null;
// Not logged in? MUA it is, then!
if (!loggedIn) {