@bobfrankston/rmfmail 1.2.274 → 1.2.276

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.
Files changed (33) hide show
  1. package/.commitmsg +26 -0
  2. package/client/android-bootstrap.bundle.js +169 -0
  3. package/client/android-bootstrap.bundle.js.map +2 -2
  4. package/client/app.bundle.js +123 -23
  5. package/client/app.bundle.js.map +4 -4
  6. package/client/app.js +16 -1
  7. package/client/app.js.map +1 -1
  8. package/client/app.ts +16 -1
  9. package/client/components/invite-card.js +107 -0
  10. package/client/components/invite-card.js.map +1 -0
  11. package/client/components/invite-card.ts +119 -0
  12. package/client/components/message-viewer.js +42 -17
  13. package/client/components/message-viewer.js.map +1 -1
  14. package/client/components/message-viewer.ts +42 -16
  15. package/client/package.json +1 -1
  16. package/client/styles/components.css +48 -0
  17. package/package.json +8 -8
  18. package/packages/mailx-imap/package-lock.json +2 -2
  19. package/packages/mailx-imap/package.json +2 -2
  20. package/packages/mailx-settings/package.json +1 -1
  21. package/packages/mailx-store/package.json +1 -1
  22. package/packages/mailx-store/store.d.ts +5 -0
  23. package/packages/mailx-store/store.d.ts.map +1 -1
  24. package/packages/mailx-store/store.js +21 -0
  25. package/packages/mailx-store/store.js.map +1 -1
  26. package/packages/mailx-store/store.ts +27 -0
  27. package/packages/mailx-types/index.d.ts +56 -0
  28. package/packages/mailx-types/index.d.ts.map +1 -1
  29. package/packages/mailx-types/index.js +187 -0
  30. package/packages/mailx-types/index.js.map +1 -1
  31. package/packages/mailx-types/index.ts +192 -0
  32. package/packages/mailx-types/package.json +1 -1
  33. /package/packages/mailx-imap/{node_modules.npmglobalize-stash-31304 → node_modules.npmglobalize-stash-59216}/.package-lock.json +0 -0
package/client/app.js CHANGED
@@ -159,6 +159,9 @@ window.__btick && window.__btick("app.ts module body executing");
159
159
  let baseTitle = APP_NAME;
160
160
  let lastSeenCount = 0;
161
161
  let badgeCount = 0;
162
+ /** Last count pushed to the Windows taskbar overlay, so an unchanged count
163
+ * is not re-pushed. -1 = nothing pushed yet. See updateBadge. */
164
+ let lastOverlayCount = -1;
162
165
  function updateBadge(count) {
163
166
  badgeCount = count;
164
167
  // Update title
@@ -212,7 +215,19 @@ function updateBadge(count) {
212
215
  // taskbar for the whole life of this feature (Bob 2026-05-28 "are you
213
216
  // able to show the number of new messages").
214
217
  const hostApi = window.mailxapi;
215
- if (hostApi?.setTaskbarOverlay) {
218
+ // Push ONLY when the number actually changes. Windows keeps the
219
+ // overlay icon alive until the next SetOverlayIcon, so the host
220
+ // cannot free the icon it just handed over — each push costs the
221
+ // host process one HICON plus the two bitmaps inside it, and the
222
+ // unread-count refresh fires every few seconds. That reached the
223
+ // 10,000-object per-process GDI cap in about a day, after which the
224
+ // host logged "CreateIconIndirect failed: Not enough memory
225
+ // resources" on every tick and could create no further GDI objects
226
+ // (Bob 2026-08-23, measured: rmfmail.exe at GDI=9995). msger now
227
+ // frees the PREVIOUS icon so the leak is bounded either way; this
228
+ // just stops the pointless churn (Claude Code 2026-08-23).
229
+ if (hostApi?.setTaskbarOverlay && count !== lastOverlayCount) {
230
+ lastOverlayCount = count;
216
231
  if (count > 0) {
217
232
  // BADGE-ONLY overlay. SetOverlayIcon composites the supplied
218
233
  // icon onto the bottom-right corner of the taskbar button —