@bobfrankston/rmfmail 1.1.195 → 1.1.196
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/client/android-bootstrap.bundle.js +6 -4
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/package.json +1 -1
- package/packages/mailx-imap/index.js +4 -4
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +4 -4
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-store/db.d.ts +11 -3
- package/packages/mailx-store/db.d.ts.map +1 -1
- package/packages/mailx-store/db.js +48 -6
- package/packages/mailx-store/db.js.map +1 -1
- package/packages/mailx-store/db.ts +51 -9
- package/packages/mailx-store/package.json +1 -1
- package/packages/mailx-store-web/android-bootstrap.js +2 -2
- package/packages/mailx-store-web/android-bootstrap.js.map +1 -1
- package/packages/mailx-store-web/android-bootstrap.ts +2 -2
- package/packages/mailx-store-web/db.d.ts +3 -1
- package/packages/mailx-store-web/db.d.ts.map +1 -1
- package/packages/mailx-store-web/db.js +4 -2
- package/packages/mailx-store-web/db.js.map +1 -1
- package/packages/mailx-store-web/db.ts +5 -3
- package/packages/mailx-store-web/package.json +1 -1
- package/packages/mailx-store-web/sync-manager.js +1 -1
- package/packages/mailx-store-web/sync-manager.js.map +1 -1
- package/packages/mailx-store-web/sync-manager.ts +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-43840 → node_modules.npmglobalize-stash-59976}/.package-lock.json +0 -0
|
@@ -5213,8 +5213,10 @@ var WebMailxDB = class {
|
|
|
5213
5213
|
updateMessageFlags(accountId, folderId, uid, flags) {
|
|
5214
5214
|
this.run("UPDATE messages SET flags_json = ? WHERE account_id = ? AND folder_id = ? AND uid = ?", [JSON.stringify(flags), accountId, folderId, uid]);
|
|
5215
5215
|
}
|
|
5216
|
-
|
|
5217
|
-
|
|
5216
|
+
/** folderId REQUIRED — see main mailx-store/db.ts: a (account, uid) write
|
|
5217
|
+
* cross-wires body_path across every folder sharing the numeric UID. */
|
|
5218
|
+
updateBodyPath(accountId, folderId, uid, bodyPath) {
|
|
5219
|
+
this.run("UPDATE messages SET body_path = ? WHERE account_id = ? AND folder_id = ? AND uid = ?", [bodyPath, accountId, folderId, uid]);
|
|
5218
5220
|
}
|
|
5219
5221
|
getMessagesWithoutBody(accountId, limit = 50) {
|
|
5220
5222
|
return this.all("SELECT uid, folder_id as folderId FROM messages WHERE account_id = ? AND (body_path IS NULL OR body_path NOT LIKE 'idb:%') ORDER BY (size IS NULL OR size = 0), size ASC, date DESC LIMIT ?", [accountId, limit]);
|
|
@@ -9779,7 +9781,7 @@ var AndroidSyncManager = class {
|
|
|
9779
9781
|
await new Promise((r) => setTimeout(r, rateLimitCooldownUntil - now));
|
|
9780
9782
|
}
|
|
9781
9783
|
if (await this.bodyStore.hasMessage(accountId, m.folderId, m.uid)) {
|
|
9782
|
-
this.db.updateBodyPath(accountId, m.uid, `idb:${accountId}/${m.folderId}/${m.uid}`);
|
|
9784
|
+
this.db.updateBodyPath(accountId, m.folderId, m.uid, `idb:${accountId}/${m.folderId}/${m.uid}`);
|
|
9783
9785
|
progressedThisBatch = true;
|
|
9784
9786
|
continue;
|
|
9785
9787
|
}
|
|
@@ -9991,7 +9993,7 @@ var AndroidSyncManager = class {
|
|
|
9991
9993
|
}
|
|
9992
9994
|
const raw = new TextEncoder().encode(msg.source);
|
|
9993
9995
|
await this.bodyStore.putMessage(accountId, folderId, uid, raw);
|
|
9994
|
-
this.db.updateBodyPath(accountId, uid, `idb:${accountId}/${folderId}/${uid}`);
|
|
9996
|
+
this.db.updateBodyPath(accountId, folderId, uid, `idb:${accountId}/${folderId}/${uid}`);
|
|
9995
9997
|
console.log(`[fetchBody] fetched + cached ${accountId}/${folderId}/${uid} (${raw.byteLength} bytes, ${Date.now() - t0}ms)`);
|
|
9996
9998
|
return raw;
|
|
9997
9999
|
}
|