@bobfrankston/rmfmail 1.2.175 → 1.2.177
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/TODO.md +2 -2
- package/client/app.bundle.js +8 -9
- package/client/app.bundle.js.map +2 -2
- package/client/components/alarms.js +19 -9
- package/client/components/alarms.js.map +1 -1
- package/client/components/alarms.ts +21 -7
- package/package.json +5 -5
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-33656 → node_modules.npmglobalize-stash-69680}/.package-lock.json +0 -0
package/TODO.md
CHANGED
|
@@ -219,7 +219,7 @@ Items blocked on a design decision. Short-form question here; full context in th
|
|
|
219
219
|
| **C41** | PARTIAL | Reply quoting — already wraps in `<blockquote>`; read-only + non-editable-above-the-line still owed (needs Quill module work). |
|
|
220
220
|
| **C43** | OPEN | Message list column controls + threading flags. ✓ (sort-by-column-click is small) |
|
|
221
221
|
| **C44** | DONE (v1.2.105) | Real OS popup windows / pop-out — floating-overlay popout landed (Q64 v1.0.344); v1.2.105 unblocked the real OS window: 🗗 asks the daemon, which spawns a native msger window (`showMessageBoxEx({url})`) pointed at the loopback popout server. Toolbar actions POST back → `popoutAction` event → main window opens editable compose / flags / deletes (delete also closes the window). Browser-window option deferred (same URL, just `openExternal` it). |
|
|
222
|
-
| [**C46**](#ext46) | PARTIAL | Mailto handler split out as [P115](#ext115) (registry-only, not blocked). Share target SHIPPED v1.2.
|
|
222
|
+
| [**C46**](#ext46) | PARTIAL | Mailto handler split out as [P115](#ext115) (registry-only, not blocked). Share target SHIPPED v1.2.175 (`-register-share`, loose AppX — no MSIX needed). Remaining (tray, notifications) still blocked on MSIX packaging. |
|
|
223
223
|
| **C127** | OPTIONAL | **Push relay for calendar / mail / tasks** — design at [`docs/push-relay.md`](push-relay.md). New `MailApps/relayer/` package, alerter-shape (single Node Express+ws process, deploy alongside other small services). Generic API: client POSTs `/subscribe` with upstream + params, relay registers the upstream `events.watch` and returns an SSE/WS endpoint the client holds open. Per-upstream adapter files (`google-calendar.ts`, `google-gmail.ts`, `ms-graph-events.ts`); fan-out + replay buffer + subscription store generic. Client side: `pushRelayUrl` + credentials in settings, falls back to syncToken polling when relay unreachable. **Build only when polling latency demonstrably matters** — for typical use, 5–10 s syncToken cadence is functionally instant. Push is a freshness boost, not a correctness fix. |
|
|
224
224
|
| **C128** | OPEN | **Body pre-parse on prefetch** — first click on any unviewed message pays `simpleParser` + `sanitizeHtml` cost (~100–500 ms on rich HTML). The parsedCache (added 2026-05-09) eliminates 2nd-and-later view costs but not the first. Fix: extend prefetch to ALSO parse + sanitize the body during background fetch and store the result alongside the .eml (e.g., `<uuid>.parsed.json` next to `<uuid>.eml`, or a `body_html_cached` column). Click-time path reads pre-parsed JSON, no parser invocation. Touches `mailx-imap/index.ts` prefetch path + `mailx-store/file-store.ts` for the parsed-blob storage. |
|
|
225
225
|
| **C129** | OPEN | **Android prod/dev split via filename/URL channel** — User 2026-05-09 (revised): no separate MAUI project. Same source tree builds; output filenames distinguish channels: Phase 1 (start now) writes `rmfmaildev.apk` alongside today's `mailx-maui.apk`. Phase 2 (when a release is declared) switches to `rmfmail-<version>.apk` versioned + `rmfmaildev.apk` for latest, with promotion = re-pointing `rmfmail.apk` at a chosen version. Single APK contents per build; channel is runtime setting in AppUpdater (Settings toggle for which URL to poll). Side-by-side install on one device NOT supported by this design (single Android package id) — that's a separate need. See `docs/prod-android.md` for full plan. Phase 1 ~30 min; full flow ~2.5 hours when activated. |
|
|
@@ -488,7 +488,7 @@ Most likely cause based on the bobma folder layout: Dovecot designates "Deleted
|
|
|
488
488
|
### C46 — Windows OS integration (PARTIAL) [↑ summary](#sum)
|
|
489
489
|
|
|
490
490
|
- [ ] **mailto: handler** → see [P115](#ext115) — split out as standalone priority item, NOT blocked on MSIX (registry-only).
|
|
491
|
-
- [x] **Windows Share target** (v1.2.
|
|
491
|
+
- [x] **Windows Share target** (v1.2.175) — no MSIX signing needed after all: loose AppX deployment (`Add-AppxPackage -Register`, unsigned, needs Developer Mode). `rmfmail -register-share` stages `%LOCALAPPDATA%\rmfmail\share-target\` (rmfshare.exe + AppxManifest with `windows.shareTarget` + logos scaled from icon.png). `bin/rmfshare-src/` is a C# NativeAOT helper (3.8 MB, checked-in like rmfmailto.exe): ShareTarget activation → WinRT DataPackageView → files copied to `~/.rmfmail/share-staging/` → `pending-share.json` → daemon fs.watch base64s files and pushes `openShare` → compose opens with attachments/link/text. Startup-race twin `consumePendingShare` IPC, same shape as P115 mailto. Machines without Developer Mode get a clear message; Settings-UI toggle still owed (lands with P116 Settings rework).
|
|
492
492
|
- [ ] Native right-click context menus, system tray, file associations, notifications (tray + notifications still MSIX-blocked)
|
|
493
493
|
|
|
494
494
|
<a id="ext115"></a>
|
package/client/app.bundle.js
CHANGED
|
@@ -6231,9 +6231,8 @@ async function firePopupForItem(item) {
|
|
|
6231
6231
|
if (openPopups.has(item.uuid))
|
|
6232
6232
|
return;
|
|
6233
6233
|
openPopups.add(item.uuid);
|
|
6234
|
-
const
|
|
6235
|
-
|
|
6236
|
-
buttons.push("Open");
|
|
6234
|
+
const openUrl = item.kind === "calendar" ? item.htmlLink || "https://calendar.google.com/" : "https://tasks.google.com/";
|
|
6235
|
+
const buttons = ["snooze", "Dismiss", "Open"];
|
|
6237
6236
|
if (item.kind === "calendar")
|
|
6238
6237
|
buttons.push("Delete");
|
|
6239
6238
|
const icon = item.kind === "calendar" ? "\u{1F4C5}" : "\u2611";
|
|
@@ -6247,9 +6246,7 @@ async function firePopupForItem(item) {
|
|
|
6247
6246
|
{ label: "1d", minutes: 60 * 24 }
|
|
6248
6247
|
];
|
|
6249
6248
|
const presetChips = presets.map((p) => `<button type="button" class="chip" data-snooze-min="${p.minutes}">${p.label}</button>`).join("");
|
|
6250
|
-
const actionBtns = ["Dismiss"];
|
|
6251
|
-
if (item.htmlLink)
|
|
6252
|
-
actionBtns.push("Open");
|
|
6249
|
+
const actionBtns = ["Dismiss", "Open"];
|
|
6253
6250
|
if (item.kind === "calendar")
|
|
6254
6251
|
actionBtns.push("Delete");
|
|
6255
6252
|
const actionHtml = actionBtns.map((b) => `<button type="button" class="action" data-btn="${escapeHtml6(b)}">${escapeHtml6(b)}</button>`).join("");
|
|
@@ -6361,12 +6358,14 @@ async function firePopupForItem(item) {
|
|
|
6361
6358
|
}
|
|
6362
6359
|
const api = window.mailxapi;
|
|
6363
6360
|
const openLink = () => {
|
|
6364
|
-
if (
|
|
6361
|
+
if (item.kind === "calendar" && item.htmlLink && api?.openCalendarEvent) {
|
|
6362
|
+
api.openCalendarEvent(item.htmlLink);
|
|
6365
6363
|
return;
|
|
6364
|
+
}
|
|
6366
6365
|
if (api?.openExternal)
|
|
6367
|
-
api.openExternal(
|
|
6366
|
+
api.openExternal(openUrl);
|
|
6368
6367
|
else
|
|
6369
|
-
window.open(
|
|
6368
|
+
window.open(openUrl, "_blank");
|
|
6370
6369
|
};
|
|
6371
6370
|
try {
|
|
6372
6371
|
switch (r.button) {
|