@bobfrankston/mailx-imap 0.1.59 → 0.1.60
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 +8 -0
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -2597,6 +2597,14 @@ export class ImapManager extends EventEmitter {
|
|
|
2597
2597
|
* the user clicked, they're waiting, this jumps ahead of any background
|
|
2598
2598
|
* prefetch sitting in the slow lane. */
|
|
2599
2599
|
async fetchMessageBody(accountId, folderId, uid) {
|
|
2600
|
+
// Belt-and-braces against `UID FETCH 0`. The IMAP server rejects it as
|
|
2601
|
+
// BAD "Invalid uidset" and the connection slot is consumed for the
|
|
2602
|
+
// round-trip. The enqueue path now guards too — this catches direct
|
|
2603
|
+
// callers that bypass the queue (Bob 2026-05-25).
|
|
2604
|
+
if (!uid || !Number.isFinite(uid) || uid <= 0) {
|
|
2605
|
+
console.error(`[imap] fetchMessageBody rejected invalid uid=${uid} for ${accountId}/folder${folderId}`);
|
|
2606
|
+
return null;
|
|
2607
|
+
}
|
|
2600
2608
|
const envelope = this.db.getMessageByUid(accountId, uid, folderId);
|
|
2601
2609
|
let storedPath = envelope?.bodyPath || "";
|
|
2602
2610
|
if (!storedPath)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx-imap",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.60",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@bobfrankston/mailx-types": "^0.1.18",
|
|
13
13
|
"@bobfrankston/mailx-settings": "^0.1.22",
|
|
14
|
-
"@bobfrankston/mailx-store": "^0.1.
|
|
14
|
+
"@bobfrankston/mailx-store": "^0.1.36",
|
|
15
15
|
"@bobfrankston/iflow-direct": "^0.1.50",
|
|
16
16
|
"@bobfrankston/tcp-transport": "^0.1.6",
|
|
17
17
|
"@bobfrankston/smtp-direct": "^0.1.8",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@bobfrankston/mailx-types": "^0.1.18",
|
|
41
41
|
"@bobfrankston/mailx-settings": "^0.1.22",
|
|
42
|
-
"@bobfrankston/mailx-store": "^0.1.
|
|
42
|
+
"@bobfrankston/mailx-store": "^0.1.36",
|
|
43
43
|
"@bobfrankston/iflow-direct": "^0.1.50",
|
|
44
44
|
"@bobfrankston/tcp-transport": "^0.1.6",
|
|
45
45
|
"@bobfrankston/smtp-direct": "^0.1.8",
|