fix duplicate content header
This commit is contained in:
parent
91898e25a5
commit
14dd6b36f8
@ -92,9 +92,15 @@ async function saveFromParsedData(parsed, messageId) {
|
||||
} else if (["html", "text", "textAsHtml"].includes(key)) {
|
||||
const hash = "0";
|
||||
const size = "0";
|
||||
let partType = "text/plain";
|
||||
if (key == "html") {
|
||||
partType = "text/html";
|
||||
} else if (key == "textAsHtml") {
|
||||
partType = "text/TexAsHtml";
|
||||
}
|
||||
saveBodypart(size, hash, parsed[key], "").then((bodypartId) => {
|
||||
getFieldId(key).then((fieldId) => {
|
||||
saveHeader_fields(messageId, fieldId, bodypartId, undefined, undefined);
|
||||
saveHeader_fields(messageId, fieldId, bodypartId, partType, undefined);
|
||||
});
|
||||
});
|
||||
} else if (key == "attachments") {
|
||||
|
Loading…
Reference in New Issue
Block a user