@bobfrankston/mailx-imap 0.1.75 → 0.1.76
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 +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2774,7 +2774,7 @@ export class ImapManager extends EventEmitter {
|
|
|
2774
2774
|
if (!raw)
|
|
2775
2775
|
return null;
|
|
2776
2776
|
const bodyPath = await this.bodyStore.putMessage(accountId, folderId, uid, raw);
|
|
2777
|
-
this.db.updateBodyPath(accountId, uid, bodyPath);
|
|
2777
|
+
this.db.updateBodyPath(accountId, folderId, uid, bodyPath);
|
|
2778
2778
|
this.emit("bodyCached", accountId, uid);
|
|
2779
2779
|
return raw;
|
|
2780
2780
|
}
|
|
@@ -2816,7 +2816,7 @@ export class ImapManager extends EventEmitter {
|
|
|
2816
2816
|
}
|
|
2817
2817
|
const raw = Buffer.from(msg.source, "utf-8");
|
|
2818
2818
|
const bodyPath = await this.bodyStore.putMessage(accountId, folderId, uid, raw);
|
|
2819
|
-
this.db.updateBodyPath(accountId, uid, bodyPath);
|
|
2819
|
+
this.db.updateBodyPath(accountId, folderId, uid, bodyPath);
|
|
2820
2820
|
this.emit("bodyCached", accountId, uid);
|
|
2821
2821
|
return raw;
|
|
2822
2822
|
}
|
|
@@ -2997,7 +2997,7 @@ export class ImapManager extends EventEmitter {
|
|
|
2997
2997
|
const raw = Buffer.from(source, "utf-8");
|
|
2998
2998
|
const bodyPath = await this.bodyStore.putMessage(accountId, folderId, uid, raw);
|
|
2999
2999
|
const parsed = await extractPreview(source);
|
|
3000
|
-
this.db.updateBodyMeta(accountId, uid, bodyPath, parsed.hasAttachments, parsed.preview);
|
|
3000
|
+
this.db.updateBodyMeta(accountId, folderId, uid, bodyPath, parsed.hasAttachments, parsed.preview);
|
|
3001
3001
|
this.emit("bodyCached", accountId, uid);
|
|
3002
3002
|
counters.totalFetched++;
|
|
3003
3003
|
madeProgress = true;
|
|
@@ -3129,7 +3129,7 @@ export class ImapManager extends EventEmitter {
|
|
|
3129
3129
|
const raw = Buffer.from(source, "utf-8");
|
|
3130
3130
|
const bodyPath = await this.bodyStore.putMessage(accountId, folderId, uid, raw);
|
|
3131
3131
|
const parsed = await extractPreview(source);
|
|
3132
|
-
this.db.updateBodyMeta(accountId, uid, bodyPath, parsed.hasAttachments, parsed.preview);
|
|
3132
|
+
this.db.updateBodyMeta(accountId, folderId, uid, bodyPath, parsed.hasAttachments, parsed.preview);
|
|
3133
3133
|
this.emit("bodyCached", accountId, uid);
|
|
3134
3134
|
this.clearPrefetchEmpty(accountId, folderId, uid); // healed — drop stale backoff
|
|
3135
3135
|
counters.totalFetched++;
|