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