1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

email - better cleanup of deleted messages ?

This commit is contained in:
Dave Conway-Jones 2022-12-22 11:38:00 +00:00
parent 2b50bf38ec
commit b9053cf962
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
2 changed files with 3 additions and 3 deletions

View File

@ -469,9 +469,9 @@ module.exports = function(RED) {
done(); done();
}; };
if (node.disposition === "Delete") { if (node.disposition === "Delete") {
imap.addFlags(results, "\Deleted", cleanup); imap.addFlags(results, '\\Deleted', imap.expunge(cleanup) );
} else if (node.disposition === "Read") { } else if (node.disposition === "Read") {
imap.addFlags(results, "\Seen", cleanup); imap.addFlags(results, '\\Seen', cleanup);
} else { } else {
cleanup(); cleanup();
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-node-email", "name": "node-red-node-email",
"version": "1.18.2", "version": "1.18.3",
"description": "Node-RED nodes to send and receive simple emails.", "description": "Node-RED nodes to send and receive simple emails.",
"dependencies": { "dependencies": {
"imap": "^0.8.19", "imap": "^0.8.19",