add mailto from redialed, resort config by port
This commit is contained in:
16
zefie_wtvp_minisrv/includes/ServiceVault/mailto/catchall.js
Normal file
16
zefie_wtvp_minisrv/includes/ServiceVault/mailto/catchall.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var mailto = request_headers.request_url;
|
||||||
|
mailto = mailto.substring(mailto.indexOf(":") + 1);
|
||||||
|
mailto = mailto.split("?")[0];
|
||||||
|
var subject = request_headers.query.subject || "";
|
||||||
|
var body = request_headers.query.body || "";
|
||||||
|
|
||||||
|
session_data.deleteSessionData("mail_draft");
|
||||||
|
session_data.deleteSessionData("mail_draft_attachments");
|
||||||
|
|
||||||
|
// We will have to add Carbon Copy headers eventually, but we do get a pass on Blind Carbon Copy since that was never supported
|
||||||
|
headers = `302 Moved temporarily
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire: wtv-mail:/sendmail
|
||||||
|
Location: wtv-mail:/sendmail?message_to=${mailto}&message_subject=${subject}&message_body=${body}`;
|
||||||
@@ -226,12 +226,31 @@
|
|||||||
"port": 1607,
|
"port": 1607,
|
||||||
"privileged": true
|
"privileged": true
|
||||||
},
|
},
|
||||||
|
"wtv-mail": {
|
||||||
|
// wtv-mail
|
||||||
|
"port": 1608,
|
||||||
|
"connections": 3,
|
||||||
|
"modules": [
|
||||||
|
"WTVNews"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mailto": {
|
||||||
|
"port": 1608
|
||||||
|
},
|
||||||
"wtv-log": {
|
"wtv-log": {
|
||||||
// wtv-log
|
// wtv-log
|
||||||
"port": 1609,
|
"port": 1609,
|
||||||
"connections": 1,
|
"connections": 1,
|
||||||
"write_logs_to_disk": false // set this to true to save logs to the error_log_file set above
|
"write_logs_to_disk": false // set this to true to save logs to the error_log_file set above
|
||||||
},
|
},
|
||||||
|
"wtv-favorite": {
|
||||||
|
// wtv-favorite
|
||||||
|
"port": 1611,
|
||||||
|
"connections": 3,
|
||||||
|
"enable_multi_query": true,
|
||||||
|
"max_folders": 14,
|
||||||
|
"max_favorites_per_folder": 18
|
||||||
|
},
|
||||||
"wtv-home": {
|
"wtv-home": {
|
||||||
// wtv-home
|
// wtv-home
|
||||||
"port": 1612
|
"port": 1612
|
||||||
@@ -272,17 +291,19 @@
|
|||||||
"WTVRegister"
|
"WTVRegister"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"wtv-music": {
|
|
||||||
// wtv-music
|
|
||||||
"port": 1656,
|
|
||||||
"connections": 3,
|
|
||||||
"flags": "0x00000004"
|
|
||||||
},
|
|
||||||
"wtv-cookie": {
|
"wtv-cookie": {
|
||||||
// wtv-cookie (used for http(s) cookies)
|
// wtv-cookie (used for http(s) cookies)
|
||||||
"port": 1619,
|
"port": 1619,
|
||||||
"connections": 1
|
"connections": 1
|
||||||
},
|
},
|
||||||
|
"wtv-guide": {
|
||||||
|
// wtv-guide (not yet complete)
|
||||||
|
"port": 1621,
|
||||||
|
"connections": 3,
|
||||||
|
"modules": [
|
||||||
|
"WTVGuide"
|
||||||
|
]
|
||||||
|
},
|
||||||
"wtv-chat": {
|
"wtv-chat": {
|
||||||
// wtv-chat (used for IRC)
|
// wtv-chat (used for IRC)
|
||||||
"port": 1630,
|
"port": 1630,
|
||||||
@@ -309,41 +330,6 @@
|
|||||||
"WTVDisk"
|
"WTVDisk"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"wtv-guide": {
|
|
||||||
// wtv-guide (not yet complete)
|
|
||||||
"port": 1621,
|
|
||||||
"connections": 3,
|
|
||||||
"modules": [
|
|
||||||
"WTVGuide"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"wtv-mail": {
|
|
||||||
// wtv-mail
|
|
||||||
"port": 1608,
|
|
||||||
"connections": 3,
|
|
||||||
"modules": [
|
|
||||||
"WTVNews"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"wtv-passport": {
|
|
||||||
// wtv-passport (for messenger)
|
|
||||||
"port": 1654
|
|
||||||
},
|
|
||||||
"wtv-favorite": {
|
|
||||||
// wtv-favorite
|
|
||||||
"port": 1611,
|
|
||||||
"connections": 3,
|
|
||||||
"enable_multi_query": true,
|
|
||||||
"max_folders": 14,
|
|
||||||
"max_favorites_per_folder": 18
|
|
||||||
},
|
|
||||||
"wtv-admin": {
|
|
||||||
// wtv-admin
|
|
||||||
"port": 1698,
|
|
||||||
"enable_multi_query": true,
|
|
||||||
"privileged": true,
|
|
||||||
"password": "viRak-7" // change to something more unique
|
|
||||||
},
|
|
||||||
"wtv-author": {
|
"wtv-author": {
|
||||||
"port": 1643,
|
"port": 1643,
|
||||||
"connections": 3,
|
"connections": 3,
|
||||||
@@ -385,7 +371,16 @@
|
|||||||
"external_proxy_is_http1": true,
|
"external_proxy_is_http1": true,
|
||||||
"flags": "0x00000001"
|
"flags": "0x00000001"
|
||||||
},
|
},
|
||||||
|
"wtv-passport": {
|
||||||
|
// wtv-passport (for messenger)
|
||||||
|
"port": 1654
|
||||||
|
},
|
||||||
|
"wtv-music": {
|
||||||
|
// wtv-music
|
||||||
|
"port": 1656,
|
||||||
|
"connections": 3,
|
||||||
|
"flags": "0x00000004"
|
||||||
|
},
|
||||||
"pb_services": {
|
"pb_services": {
|
||||||
// PC Services for PageBuilder
|
// PC Services for PageBuilder
|
||||||
"port": 1697,
|
"port": 1697,
|
||||||
@@ -398,6 +393,13 @@
|
|||||||
"allow_https": false, // for future use with LetsEncrypt
|
"allow_https": false, // for future use with LetsEncrypt
|
||||||
"force_https": false // for future use with LetsEncrypt
|
"force_https": false // for future use with LetsEncrypt
|
||||||
},
|
},
|
||||||
|
"wtv-admin": {
|
||||||
|
// wtv-admin
|
||||||
|
"port": 1698,
|
||||||
|
"enable_multi_query": true,
|
||||||
|
"privileged": true,
|
||||||
|
"password": "viRak-7" // change to something more unique
|
||||||
|
},
|
||||||
"pc_services": {
|
"pc_services": {
|
||||||
// PC Services
|
// PC Services
|
||||||
"port": 1699,
|
"port": 1699,
|
||||||
|
|||||||
Reference in New Issue
Block a user