fix DealerDemo and other stuff

This commit is contained in:
zefie
2022-02-13 00:15:52 -05:00
parent 445e28c91a
commit f32c4b1926
58 changed files with 372 additions and 58 deletions

View File

@@ -3,7 +3,6 @@ class WTVMail {
fs = require('fs');
path = require('path');
uuid = require('uuid');
ssid = null;
unread_mail = 0;
inbox_store = null;
@@ -124,14 +123,6 @@ class WTVMail {
return this.uuid.v1();
}
sanitizeSignature(string) {
// placeholder ~ not yet implemented
// todo: strip <script>, </script> and everything inbetween
// todo: add missing user open tags (eg </i> if user did not close it)
// todo: figure out bgcolor and text color voodoo
return string;
}
createMessage(mailboxid, from_addr, to_addr, msgbody, subject = null, from_name = null, to_name = null, signature = null, date = null, known_sender = false, attachments = []) {
if (this.createMailbox(mailboxid)) {
if (!date) date = Math.floor(Date.now() / 1000);