@bobfrankston/rmfmail 1.1.250 → 1.2.1
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 +12 -3
- package/client/android-bootstrap.bundle.js.map +1 -1
- package/client/app.bundle.js +12 -11
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +11 -13
- package/client/app.js.map +1 -1
- package/client/app.ts +10 -12
- package/client/compose/compose.bundle.js +12 -3
- package/client/compose/compose.bundle.js.map +1 -1
- package/docs/architecture-review.md +182 -0
- package/docs/clean-architecture.md +161 -0
- package/package.json +1 -1
- package/packages/mailx-api/index.d.ts.map +1 -1
- package/packages/mailx-api/index.js +8 -5
- package/packages/mailx-api/index.js.map +1 -1
- package/packages/mailx-api/index.ts +8 -5
- package/packages/mailx-service/db-worker.js +5 -1
- package/packages/mailx-service/db-worker.js.map +1 -1
- package/packages/mailx-service/db-worker.ts +5 -1
- package/packages/mailx-service/index.d.ts +18 -1
- package/packages/mailx-service/index.d.ts.map +1 -1
- package/packages/mailx-service/index.js +67 -7
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +76 -7
- package/packages/mailx-store/db.d.ts +7 -1
- package/packages/mailx-store/db.d.ts.map +1 -1
- package/packages/mailx-store/db.js +26 -1
- package/packages/mailx-store/db.js.map +1 -1
- package/packages/mailx-store/db.ts +27 -1
- package/test/phase0-readworker.mjs +185 -0
package/client/app.ts
CHANGED
|
@@ -2341,18 +2341,16 @@ function doSearch(immediate = false): void {
|
|
|
2341
2341
|
if (serverSearchTimer) { clearTimeout(serverSearchTimer); serverSearchTimer = null; }
|
|
2342
2342
|
cancelServerSearch();
|
|
2343
2343
|
|
|
2344
|
-
// "This folder" scope
|
|
2345
|
-
//
|
|
2346
|
-
//
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
return;
|
|
2355
|
-
}
|
|
2344
|
+
// "This folder" scope used to be an instant client-side filter of the
|
|
2345
|
+
// VISIBLE rows. That was doubly wrong (Bob 2026-06-12): it only saw the
|
|
2346
|
+
// loaded page (so a match deeper in a big folder like Trash never showed),
|
|
2347
|
+
// and it did a dumb substring match that didn't understand qualifiers
|
|
2348
|
+
// (`from:amazon` matched the literal text and so found nothing). "This
|
|
2349
|
+
// folder" now runs the REAL DB search below (scope="current"), which the
|
|
2350
|
+
// service scopes to the current folder AND forces includeTrashSpam=true —
|
|
2351
|
+
// so searching inside Trash finds Trash messages, and `from:`/`subject:`
|
|
2352
|
+
// qualifiers work. The DB FTS pass is sub-second, so we don't lose the
|
|
2353
|
+
// instant feel. (Server checkbox still adds the cross-folder IMAP sweep.)
|
|
2356
2354
|
|
|
2357
2355
|
// ── Phase 1: LOCAL search — always, immediately ──
|
|
2358
2356
|
// The local SQLite store is fast; results paint as the user types.
|
|
@@ -4,11 +4,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __esm = (fn, res) => function __init() {
|
|
8
|
-
|
|
7
|
+
var __esm = (fn, res, err) => function __init() {
|
|
8
|
+
if (err) throw err[0];
|
|
9
|
+
try {
|
|
10
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw err = [e], e;
|
|
13
|
+
}
|
|
9
14
|
};
|
|
10
15
|
var __commonJS = (cb, mod) => function __require() {
|
|
11
|
-
|
|
16
|
+
try {
|
|
17
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw mod = 0, e;
|
|
20
|
+
}
|
|
12
21
|
};
|
|
13
22
|
var __export = (target, all) => {
|
|
14
23
|
for (var name in all)
|