Merge pull request #1 from qivhou/qivhou-patch-650

Update 61-email.js
This commit is contained in:
Vincent Hou 2020-09-23 14:37:00 +08:00 committed by GitHub
commit 81d6943d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();