Update 61-email.js (#689)

Fixed disposition issue caused by `this`.
This commit is contained in:
Vincent Hou 2020-09-23 15:35:08 +08:00 committed by GitHub
parent fbad6e4c2d
commit 606f9c71e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -414,9 +414,9 @@ module.exports = function(RED) {
s = false;
setInputRepeatTimeout();
};
if (this.disposition === "Delete") {
if (node.disposition === "Delete") {
imap.addFlags(results, "\Deleted", cleanup);
} else if (this.disposition === "Read") {
} else if (node.disposition === "Read") {
imap.addFlags(results, "\Seen", cleanup);
} else {
cleanup();