mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-04 11:55:21 +08:00
Store HTML and plaintext in DB entry
This commit is contained in:
parent
34272de1fa
commit
00f9be4968
1 changed files with 2 additions and 2 deletions
|
@ -201,8 +201,8 @@ class MessageHandler {
|
|||
}
|
||||
|
||||
let maxTextLength = 200 * 1024;
|
||||
if (maildata.text) {
|
||||
message.text = maildata.text.length <= maxTextLength ? maildata.text : maildata.text.substr(0, maxTextLength);
|
||||
if (maildata.plain) {
|
||||
message.text = maildata.plain.length <= maxTextLength ? maildata.plain : maildata.plain.substr(0, maxTextLength);
|
||||
}
|
||||
if (maildata.html) {
|
||||
message.html = this.cleanHtml(maildata.html.replace(/\r\n/g, '\n'));
|
||||
|
|
Loading…
Reference in a new issue