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:
parent
2b50bf38ec
commit
b9053cf962
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user