@bobfrankston/rmfmail 1.1.91 → 1.1.93
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/.commitmsg +18 -9
- package/client/app.bundle.js +2 -1
- package/client/app.bundle.js.map +2 -2
- package/client/components/message-viewer.js +14 -6
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +16 -6
- package/npmchanges.md +30 -0
- package/package.json +3 -3
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +15 -2
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +13 -2
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-settings/package.json +1 -1
- package/packages/mailx-store/db.d.ts +9 -3
- package/packages/mailx-store/db.d.ts.map +1 -1
- package/packages/mailx-store/db.js +12 -7
- package/packages/mailx-store/db.js.map +1 -1
- package/packages/mailx-store/db.ts +11 -8
- package/packages/mailx-store/package.json +1 -1
- package/packages/mailx-store/store.js +2 -2
- package/packages/mailx-store/store.js.map +1 -1
- package/packages/mailx-store/store.ts +2 -2
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-62528 → node_modules.npmglobalize-stash-79564}/.package-lock.json +0 -0
package/.commitmsg
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
Search: index full message bodies, not just the preview snippet
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Body-text search only ever covered messages the user had opened. At sync
|
|
4
|
+
time the FTS body_text was seeded with the short `preview` snippet; the
|
|
5
|
+
full text was backfilled only when LocalStore.getMessage parsed a body
|
|
6
|
+
on view — and even that backfill keyed on the legacy messages.folder_id
|
|
7
|
+
column via a (account,folder,uid) lookup that could miss the row, so a
|
|
8
|
+
word buried in an opened message's body still wasn't found (Bob:
|
|
9
|
+
"mcdade" in a message body, search found nothing).
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
Two fixes:
|
|
12
|
+
- updateFtsBody(rowId, text) keys on the FTS rowid (= messages.id)
|
|
13
|
+
directly — no fragile folder lookup. store.ts passes envelope.id.
|
|
14
|
+
- The IMAP sync path now indexes the full body into FTS right after
|
|
15
|
+
upsertMessage. extractPreview already parsed `source`, so the body
|
|
16
|
+
text is free — every synced message is body-searchable without the
|
|
17
|
+
user opening it first.
|
|
18
|
+
|
|
19
|
+
Existing already-synced messages stay preview-only until re-synced
|
|
20
|
+
(mailx -repair re-indexes them).
|
package/client/app.bundle.js
CHANGED
|
@@ -1095,7 +1095,8 @@ async function showMessage(accountId, uid, folderId, specialUse, isRetry = false
|
|
|
1095
1095
|
const headerEl = document.getElementById("mv-header");
|
|
1096
1096
|
const bodyEl = document.getElementById("mv-body");
|
|
1097
1097
|
const attEl = document.getElementById("mv-attachments");
|
|
1098
|
-
|
|
1098
|
+
const sameMessage = !!currentMessage && currentAccountId === accountId && (envelope?.uuid && currentMessage.uuid ? envelope.uuid === currentMessage.uuid : currentMessage.uid === uid && (folderId === void 0 || currentMessage.folderId === folderId));
|
|
1099
|
+
if (!isRetry && sameMessage && bodyEl.querySelector("iframe")) {
|
|
1099
1100
|
if (envelope) {
|
|
1100
1101
|
lastEnvelope = envelope;
|
|
1101
1102
|
try {
|