mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-01 13:13:53 +08:00
Only use message/rfc822 as embedded message
This commit is contained in:
parent
afd85baa28
commit
27792bafca
1 changed files with 6 additions and 3 deletions
|
@ -37,10 +37,13 @@ class BodyStructure {
|
|||
case 'text':
|
||||
return this.processTextNode(node, options);
|
||||
case 'message':
|
||||
if (!options.attachmentRFC822) {
|
||||
return this.processRFC822Node(node, options);
|
||||
if (node.parsedHeader['content-type'].subtype === 'rfc822') {
|
||||
if (!options.attachmentRFC822) {
|
||||
return this.processRFC822Node(node, options);
|
||||
}
|
||||
return this.processAttachmentNode(node, options);
|
||||
}
|
||||
return this.processAttachmentNode(node, options);
|
||||
// fall through
|
||||
default:
|
||||
return this.processAttachmentNode(node, options);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue