Skip to content

Error after merging pull request #148 #150

@Sjonnie2nd

Description

@Sjonnie2nd

On parsing one of my emails node crashes on mailParser.js line 1047:
} else if (this.mailData.text[i].content) {.
The error message: Cannot read property 'content' of undefined.
This seems to be caused by #148

When debugging:
i=1,
this.mailData.html.length=2
this.mailData.text.length=1.

Without digging too much in the surrounding code i fixed this with:
} else if (i < this.mailData.text.length && this.mailData.text[i].content) {

Am I right here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions