Oops, need to change source
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 @@
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 @@
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 @@
let listname = email.list_raw.replace(/[<>]/g, '').replace('.', '@', 1);
let xlink = 'mailto:' + listname + "?subject=" + encodeURIComponent(subject) + "&In-Reply-To=" + encodeURIComponent(email['message-id']) + "&body=" + encodeURIComponent(eml_raw_short);
return xlink;
-}
\ No newline at end of file
+}