@bobfrankston/rmfmail 1.1.96 → 1.1.98

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 CHANGED
@@ -1,15 +1,7 @@
1
- Alarm/snooze: log decisions to the daemon log so snooze is verifiable
1
+ Signature now applied to replies/forwards, not just new mail
2
2
 
3
- On review the snooze keying is actually correct snoozeItem stores under
4
- item.uuid, which IS the full per-occurrence key (uuid:startMs@offset for
5
- calendar, uuid:dueMs for tasks) that collectDueAlarms reads back as
6
- snoozed[key]. They match.
7
-
8
- What was missing was visibility: the [alarm] decisions used plain
9
- console.log, which from the WebView never reaches the daemon log file —
10
- so "is snooze working?" couldn't be answered after the fact. Added an
11
- alog() helper that mirrors to the daemon log via logClientEvent, a
12
- "snooze saved" line (key + minutes + untilMs), and routed the existing
13
- fire-decision / dismiss / unknown-result logs through it. Next snooze is
14
- now traceable: the "snooze saved" line and the following "fire decision"
15
- line confirm the snooze took and for how long.
3
+ The new-format signature (acct.sig.text) was gated on "new mail only",
4
+ so anyone using it got no signature on a reply or forward — only the
5
+ legacy acct.signature field covered replies. Both formats now apply to
6
+ new + reply + forward alike: above the quoted block on a reply/forward,
7
+ at the end on new mail. Drafts still skip it (already in the saved body).
@@ -8647,8 +8647,11 @@ document.addEventListener("keydown", (e) => {
8647
8647
  applyFontSize(next);
8648
8648
  }
8649
8649
  if (e.ctrlKey && e.key === "a") {
8650
+ const t = e.target;
8651
+ const tag = t?.tagName;
8652
+ if (tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT" || t?.isContentEditable) return;
8650
8653
  const mlBody = document.getElementById("ml-body");
8651
- if (mlBody && document.activeElement?.closest(".message-list, .ml-body, body")) {
8654
+ if (mlBody) {
8652
8655
  e.preventDefault();
8653
8656
  mlBody.querySelectorAll(".ml-row").forEach((r) => r.classList.add("selected"));
8654
8657
  }