@bobfrankston/rmfmail 1.2.26 → 1.2.28
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.
|
@@ -7940,10 +7940,17 @@ var NativeImapClient = class {
|
|
|
7940
7940
|
return;
|
|
7941
7941
|
if (this.selectedMailbox !== folderPath)
|
|
7942
7942
|
await this.select(folderPath);
|
|
7943
|
-
|
|
7944
|
-
|
|
7943
|
+
let got = 0, sawResp = 0;
|
|
7944
|
+
await this.fetchMessagesStream(uids.join(","), { source: true }, (msg) => {
|
|
7945
|
+
sawResp++;
|
|
7946
|
+
if (msg.uid && msg.source) {
|
|
7947
|
+
got++;
|
|
7945
7948
|
onBody(msg.uid, msg.source);
|
|
7949
|
+
}
|
|
7946
7950
|
});
|
|
7951
|
+
if (got === 0 && uids.length > 0) {
|
|
7952
|
+
console.error(` [imap] fetchBodiesBatch ${folderPath}: 0/${uids.length} bodies (saw ${sawResp} FETCH responses) \u2014 body literal not extracted`);
|
|
7953
|
+
}
|
|
7947
7954
|
}
|
|
7948
7955
|
/** Fetch messages since a UID */
|
|
7949
7956
|
async fetchSinceUid(sinceUid, options = {}, onChunk) {
|