@bobfrankston/rmfmail 1.2.328 → 1.2.329

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,12 +1,6 @@
1
- Edit in Word: edits come back as Word's own HTML (Range.ExportFragment), not mammoth; default calendar = primary
1
+ Compose: no separator above the signature
2
2
 
3
- - mailx-service 0.1.40: the COM autosave sidecar exports `<base>-word.htm` via
4
- Range.ExportFragment(path, wdFormatFilteredHTML) before each autosave and
5
- mirrors a manual Ctrl+S on its next tick. New word-html.ts turns that export
6
- into a body fragment (Mso classes, comments and o: tags stripped, sidecar
7
- images inlined as data: URIs). The watcher has a per-file debounce, ignores
8
- .docx saves once the Word HTML mirror exists, and keeps mammoth only for
9
- sessions without the sidecar. Word gets only the text above the signature
10
- (v1.2.327 split); the signature and quoted message are re-attached unchanged.
11
- - Calendar: the Add-event picker always defaults to the primary ("personal")
12
- calendar instead of remembering the last choice.
3
+ The thin 3 cm rule (which replaced the "-- " delimiter on 2026-09-10) is gone;
4
+ if a separator is wanted it belongs in the user's own signature HTML. The
5
+ signature is now wrapped in <div class="mailx-sig"> purely as the marker the
6
+ Edit-in-Word split uses; the old hr markers are still recognised in drafts.
@@ -52,3 +52,6 @@ Session: Claude Fable 5.1, started 2026-09-13 ~17:00 EDT.
52
52
  exists, converts -word.htm; sweep protects -word.htm/-word_files. Head/tail split (v1.2.327) unchanged.
53
53
  - Calendar default = primary always (calendar-sidebar.ts, sticky localStorage choice removed). Publishing as 1.2.328 (rebuild4.log).
54
54
  localStorage pref else "primary").
55
+
56
+ ## 2026-09-14 ~13:40: separator above the signature removed (v1.2.329, publishing — rebuild5.log)
57
+ - No hr above the sig; sig wrapped in `<div class="mailx-sig">` as the Word-split marker; legacy hr forms still matched.
@@ -6259,8 +6259,7 @@ function applyInit(init) {
6259
6259
  sigHtml = acct.signature;
6260
6260
  }
6261
6261
  if (sigHtml) {
6262
- const sigRule = '<hr class="mailx-sig-rule" style="width:3cm;margin:0.8em 0 0.5em 0;border:0;border-top:1px solid #999;">';
6263
- const sigBlock = `<br>${sigRule}${sigHtml}`;
6262
+ const sigBlock = `<br><div class="mailx-sig">${sigHtml}</div>`;
6264
6263
  bodyToRender = isReplyForward ? `<br>${sigBlock}<br>${bodyToRender}` : `${bodyToRender}${sigBlock}`;
6265
6264
  }
6266
6265
  }
@@ -7053,7 +7052,11 @@ var wordEditOpening = false;
7053
7052
  function splitWordEditable(html) {
7054
7053
  const doc = new DOMParser().parseFromString(html, "text/html");
7055
7054
  const nodes = Array.from(doc.body.childNodes);
7056
- const cutAt = nodes.findIndex((n) => n instanceof HTMLElement && n.matches('hr.mailx-sig-rule, hr[style*="3cm"], div.reply'));
7055
+ const cutAt = nodes.findIndex((n) => (
7056
+ // div.mailx-sig is the current marker (2026-09-14); the two hr forms
7057
+ // cover drafts saved while the signature still had a rule above it.
7058
+ n instanceof HTMLElement && n.matches('div.mailx-sig, hr.mailx-sig-rule, hr[style*="3cm"], div.reply')
7059
+ ));
7057
7060
  if (cutAt < 0) return { head: html, tail: "" };
7058
7061
  const serialize = (part) => {
7059
7062
  const box = doc.createElement("div");