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

commit 86af91a9d1af8f63a07df1ede9aa385b3b4904ec
Author: Sebb <s...@apache.org>
AuthorDate: Wed May 1 17:30:39 2024 +0100

    Oops, need to change source
---
 webui/js/source/composer.js | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/webui/js/source/composer.js b/webui/js/source/composer.js
index 08fe5be..f35b4af 100644
--- a/webui/js/source/composer.js
+++ b/webui/js/source/composer.js
@@ -5,8 +5,10 @@ function compose_send() {
     for (let k in mua_headers) {
         content.push(k + "=" + encodeURIComponent(mua_headers[k]));
     }
-    // Push the subject and email body into the form data
+    // Push the subject, (b)cc and email body into the form data
     content.push("subject=" + 
encodeURIComponent(document.getElementById('composer_subject').value));
+    content.push("cc=" + 
encodeURIComponent(document.getElementById('composer_cc').value));
+    content.push("bcc=" + 
encodeURIComponent(document.getElementById('composer_bcc').value));
     content.push("body=" + 
encodeURIComponent(document.getElementById('composer_body').value));
     if (G_ponymail_preferences.login && 
G_ponymail_preferences.login.alternates && 
document.getElementById('composer_alt')) {
         content.push("alt=" + 
encodeURIComponent(document.getElementById('composer_alt').options[document.getElementById('composer_alt').selectedIndex].value));
@@ -108,6 +110,26 @@ function compose_email(replyto, list) {
         value: eml_subject
     }));
     form.push(new HTML('br'));
+    form.push(new HTML('b', {}, "Cc:"));
+    form.push(new HTML('br'));
+    form.push(new HTML('input', {
+        style: {
+            width: '90%'
+        },
+        id: 'composer_cc',
+        type: 'text',
+    }));
+    form.push(new HTML('br'));
+    form.push(new HTML('b', {}, "Bcc:"));
+    form.push(new HTML('br'));
+    form.push(new HTML('input', {
+        style: {
+            width: '90%'
+        },
+        id: 'composer_bcc',
+        type: 'text',
+    }));
+    form.push(new HTML('br'));
     form.push(new HTML('b', {}, "Reply:"));
     form.push(new HTML('br'));
     let body = new HTML('textarea', {
@@ -195,4 +217,4 @@ function mua_link(email, xlist) {
     let listname = email.list_raw.replace(/[<>]/g, '').replace('.', '@', 1);
     let xlink = 'mailto:' + listname + "?subject=" + 
encodeURIComponent(subject) + "&amp;In-Reply-To=" + 
encodeURIComponent(email['message-id']) + "&body=" + 
encodeURIComponent(eml_raw_short);
     return xlink;
-}
\ No newline at end of file
+}

Reply via email to