mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-07 16:38:17 +08:00
ignore attached rfc822
This commit is contained in:
parent
74c7539f1b
commit
d6d3e4bad9
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class BodyStructure {
|
|||
case 'text':
|
||||
return this.processTextNode(node, options);
|
||||
case 'message':
|
||||
if (node.parsedHeader['content-type'].subtype === 'rfc822') {
|
||||
if (node.parsedHeader['content-type'].subtype === 'rfc822' && !/attachment/i.test(node.parsedHeader['content-disposition'])) {
|
||||
if (!options.attachmentRFC822) {
|
||||
return this.processRFC822Node(node, options);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue