@bobfrankston/rmfmail 1.1.194 → 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.
Files changed (32) hide show
  1. package/client/android-bootstrap.bundle.js +6 -4
  2. package/client/android-bootstrap.bundle.js.map +2 -2
  3. package/client/app.bundle.js +14 -1
  4. package/client/app.bundle.js.map +2 -2
  5. package/client/app.js +24 -4
  6. package/client/app.js.map +1 -1
  7. package/client/app.ts +23 -4
  8. package/package.json +3 -3
  9. package/packages/mailx-imap/index.js +4 -4
  10. package/packages/mailx-imap/index.js.map +1 -1
  11. package/packages/mailx-imap/index.ts +4 -4
  12. package/packages/mailx-imap/package-lock.json +2 -2
  13. package/packages/mailx-imap/package.json +1 -1
  14. package/packages/mailx-store/db.d.ts +11 -3
  15. package/packages/mailx-store/db.d.ts.map +1 -1
  16. package/packages/mailx-store/db.js +48 -6
  17. package/packages/mailx-store/db.js.map +1 -1
  18. package/packages/mailx-store/db.ts +51 -9
  19. package/packages/mailx-store/package.json +1 -1
  20. package/packages/mailx-store-web/android-bootstrap.js +2 -2
  21. package/packages/mailx-store-web/android-bootstrap.js.map +1 -1
  22. package/packages/mailx-store-web/android-bootstrap.ts +2 -2
  23. package/packages/mailx-store-web/db.d.ts +3 -1
  24. package/packages/mailx-store-web/db.d.ts.map +1 -1
  25. package/packages/mailx-store-web/db.js +4 -2
  26. package/packages/mailx-store-web/db.js.map +1 -1
  27. package/packages/mailx-store-web/db.ts +5 -3
  28. package/packages/mailx-store-web/package.json +1 -1
  29. package/packages/mailx-store-web/sync-manager.js +1 -1
  30. package/packages/mailx-store-web/sync-manager.js.map +1 -1
  31. package/packages/mailx-store-web/sync-manager.ts +1 -1
  32. /package/packages/mailx-imap/{node_modules.npmglobalize-stash-73948 → 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
- updateBodyPath(accountId, uid, bodyPath) {
5217
- this.run("UPDATE messages SET body_path = ? WHERE account_id = ? AND uid = ?", [bodyPath, accountId, uid]);
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
  }