mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
email - better cleanup of deleted messages ?
This commit is contained in:
@@ -469,9 +469,9 @@ module.exports = function(RED) {
|
||||
done();
|
||||
};
|
||||
if (node.disposition === "Delete") {
|
||||
imap.addFlags(results, "\Deleted", cleanup);
|
||||
imap.addFlags(results, '\\Deleted', imap.expunge(cleanup) );
|
||||
} else if (node.disposition === "Read") {
|
||||
imap.addFlags(results, "\Seen", cleanup);
|
||||
imap.addFlags(results, '\\Seen', cleanup);
|
||||
} else {
|
||||
cleanup();
|
||||
}
|
||||
|
Reference in New Issue
Block a user