@bobfrankston/mailx-imap 0.1.66 → 0.1.67
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/index.js +5 -5
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -1238,7 +1238,7 @@ export class ImapManager extends EventEmitter {
|
|
|
1238
1238
|
for (const uid of qr.vanishedUids) {
|
|
1239
1239
|
const env = this.db.getMessageByUid(accountId, uid, folderId);
|
|
1240
1240
|
if (env) {
|
|
1241
|
-
this.db.deleteMessage(accountId, uid, "server VANISHED via QRESYNC", "mailx-imap syncFolder/qresync");
|
|
1241
|
+
this.db.deleteMessage(accountId, folderId, uid, "server VANISHED via QRESYNC", "mailx-imap syncFolder/qresync");
|
|
1242
1242
|
vanishedApplied++;
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
@@ -2078,7 +2078,7 @@ export class ImapManager extends EventEmitter {
|
|
|
2078
2078
|
const tag = env ? `msgid=${env.messageId || "?"} subj="${(env.subject || "").slice(0, 60)}"` : "unknown";
|
|
2079
2079
|
console.log(` [reconcile-delete] ${accountId}/${folder.path} uid=${uid} ${tag}`);
|
|
2080
2080
|
this.unlinkBodyFile(accountId, uid, folder.id).catch(() => { });
|
|
2081
|
-
this.db.deleteMessage(accountId, uid, "Gmail-API reconcile: server list missing this UID", `mailx-imap Gmail reconcile (${folder.path})`);
|
|
2081
|
+
this.db.deleteMessage(accountId, folder.id, uid, "Gmail-API reconcile: server list missing this UID", `mailx-imap Gmail reconcile (${folder.path})`);
|
|
2082
2082
|
}
|
|
2083
2083
|
if (toDelete.length > 0)
|
|
2084
2084
|
console.log(` [api] ${accountId}/${folder.path}: ${toDelete.length} deleted`);
|
|
@@ -2632,7 +2632,7 @@ export class ImapManager extends EventEmitter {
|
|
|
2632
2632
|
const tag = env.messageId ? `msgid=${env.messageId} subj="${(env.subject || "").slice(0, 60)}"` : "no-msgid";
|
|
2633
2633
|
console.log(` [reconcile-delete] ${accountId}/${folderPath} uid=${uid} ${tag} (legacy path)`);
|
|
2634
2634
|
this.unlinkBodyFile(accountId, uid, folderId).catch(() => { });
|
|
2635
|
-
this.db.deleteMessage(accountId, uid, "reconcile: server missing this UID after grace (legacy)", `mailx-imap deferred reconcile (${folderPath})`);
|
|
2635
|
+
this.db.deleteMessage(accountId, folderId, uid, "reconcile: server missing this UID after grace (legacy)", `mailx-imap deferred reconcile (${folderPath})`);
|
|
2636
2636
|
}
|
|
2637
2637
|
this.db.recalcFolderCounts(folderId);
|
|
2638
2638
|
this.emit("folderCountsChanged", accountId, {});
|
|
@@ -3214,7 +3214,7 @@ export class ImapManager extends EventEmitter {
|
|
|
3214
3214
|
if (!msg)
|
|
3215
3215
|
throw new Error(`Message UID ${uid} not found in ${fromFolder.path}`);
|
|
3216
3216
|
await sourceClient.moveMessageToServer(msg, fromFolder.path, targetClient, toFolder.path);
|
|
3217
|
-
this.db.deleteMessage(fromAccountId, uid, `cross-account move to ${toAccountId}/${toFolder.path}`, "mailx-imap moveBetweenAccounts");
|
|
3217
|
+
this.db.deleteMessage(fromAccountId, fromFolder.id, uid, `cross-account move to ${toAccountId}/${toFolder.path}`, "mailx-imap moveBetweenAccounts");
|
|
3218
3218
|
console.log(` Cross-account move: ${fromAccountId}/${fromFolder.path} UID ${uid} → ${toAccountId}/${toFolder.path}`);
|
|
3219
3219
|
});
|
|
3220
3220
|
});
|
|
@@ -3561,7 +3561,7 @@ export class ImapManager extends EventEmitter {
|
|
|
3561
3561
|
const existing = this.db.getMessageByUid(accountId, draftUid, drafts.id);
|
|
3562
3562
|
if (existing) {
|
|
3563
3563
|
this.unlinkBodyFile(accountId, draftUid, drafts.id).catch(() => { });
|
|
3564
|
-
this.db.deleteMessage(accountId, draftUid, "user sent the message (draft cleanup)", "mailx-imap deleteDraft (local)");
|
|
3564
|
+
this.db.deleteMessage(accountId, drafts.id, draftUid, "user sent the message (draft cleanup)", "mailx-imap deleteDraft (local)");
|
|
3565
3565
|
localDeletedUid = draftUid;
|
|
3566
3566
|
}
|
|
3567
3567
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx-imap",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.67",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@bobfrankston/mailx-types": "^0.1.18",
|
|
13
13
|
"@bobfrankston/mailx-settings": "^0.1.25",
|
|
14
|
-
"@bobfrankston/mailx-store": "^0.1.
|
|
14
|
+
"@bobfrankston/mailx-store": "^0.1.39",
|
|
15
15
|
"@bobfrankston/iflow-direct": "^0.1.51",
|
|
16
16
|
"@bobfrankston/tcp-transport": "^0.1.6",
|
|
17
17
|
"@bobfrankston/smtp-direct": "^0.1.8",
|
|
18
18
|
"@bobfrankston/mailx-sync": "^0.1.19",
|
|
19
|
-
"@bobfrankston/oauthsupport": "^1.0.
|
|
19
|
+
"@bobfrankston/oauthsupport": "^1.0.29"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@bobfrankston/mailx-types": "^0.1.18",
|
|
41
41
|
"@bobfrankston/mailx-settings": "^0.1.25",
|
|
42
|
-
"@bobfrankston/mailx-store": "^0.1.
|
|
42
|
+
"@bobfrankston/mailx-store": "^0.1.39",
|
|
43
43
|
"@bobfrankston/iflow-direct": "^0.1.51",
|
|
44
44
|
"@bobfrankston/tcp-transport": "^0.1.6",
|
|
45
45
|
"@bobfrankston/smtp-direct": "^0.1.8",
|
|
46
46
|
"@bobfrankston/mailx-sync": "^0.1.19",
|
|
47
|
-
"@bobfrankston/oauthsupport": "^1.0.
|
|
47
|
+
"@bobfrankston/oauthsupport": "^1.0.29"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|