imapflow 1.0.99 → 1.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/commands/append.js +24 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/lib/commands/append.js
CHANGED
|
@@ -62,6 +62,18 @@ module.exports = async (connection, destination, content, flags, idate) => {
|
|
|
62
62
|
? {
|
|
63
63
|
EXISTS: async untagged => {
|
|
64
64
|
map.seq = Number(untagged.command);
|
|
65
|
+
|
|
66
|
+
if (expectExists) {
|
|
67
|
+
let prevCount = connection.mailbox.exists;
|
|
68
|
+
if (map.seq !== prevCount) {
|
|
69
|
+
connection.mailbox.exists = map.seq;
|
|
70
|
+
connection.emit('exists', {
|
|
71
|
+
path: connection.mailbox.path,
|
|
72
|
+
count: map.seq,
|
|
73
|
+
prevCount
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
65
77
|
}
|
|
66
78
|
}
|
|
67
79
|
: false
|
|
@@ -95,6 +107,18 @@ module.exports = async (connection, destination, content, flags, idate) => {
|
|
|
95
107
|
untagged: {
|
|
96
108
|
EXISTS: async untagged => {
|
|
97
109
|
map.seq = Number(untagged.command);
|
|
110
|
+
|
|
111
|
+
if (expectExists) {
|
|
112
|
+
let prevCount = connection.mailbox.exists;
|
|
113
|
+
if (map.seq !== prevCount) {
|
|
114
|
+
connection.mailbox.exists = map.seq;
|
|
115
|
+
connection.emit('exists', {
|
|
116
|
+
path: connection.mailbox.path,
|
|
117
|
+
count: map.seq,
|
|
118
|
+
prevCount
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
98
122
|
}
|
|
99
123
|
},
|
|
100
124
|
comment: 'Sequence not found from APPEND output'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imapflow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.100",
|
|
4
4
|
"description": "IMAP Client for Node",
|
|
5
5
|
"main": "./lib/imap-flow.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@babel/eslint-plugin": "7.17.7",
|
|
32
32
|
"@babel/plugin-syntax-class-properties": "7.12.13",
|
|
33
33
|
"@babel/preset-env": "7.18.2",
|
|
34
|
-
"@types/node": "
|
|
34
|
+
"@types/node": "18.0.0",
|
|
35
35
|
"braintree-jsdoc-template": "3.3.0",
|
|
36
|
-
"eslint": "8.
|
|
36
|
+
"eslint": "8.18.0",
|
|
37
37
|
"eslint-config-nodemailer": "1.2.0",
|
|
38
38
|
"eslint-config-prettier": "8.5.0",
|
|
39
39
|
"grunt": "1.5.3",
|