@bobfrankston/rmfmail 1.1.192 → 1.1.194
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/app.bundle.js +8 -0
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +9 -0
- package/client/app.js.map +1 -1
- package/client/app.ts +9 -0
- package/client/compose/compose.bundle.js +4 -0
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/lib/api-client.js +5 -0
- package/client/lib/api-client.js.map +1 -1
- package/client/lib/api-client.ts +6 -0
- package/client/lib/mailxapi.js +1 -0
- package/package.json +3 -3
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +33 -6
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +33 -6
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-service/index.d.ts +7 -0
- package/packages/mailx-service/index.d.ts.map +1 -1
- package/packages/mailx-service/index.js +14 -0
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +14 -0
- package/packages/mailx-service/jsonrpc.js +3 -0
- package/packages/mailx-service/jsonrpc.js.map +1 -1
- package/packages/mailx-service/jsonrpc.ts +3 -0
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-42480 → node_modules.npmglobalize-stash-73948}/.package-lock.json +0 -0
package/client/app.js
CHANGED
|
@@ -446,6 +446,15 @@ initFolderTree(folderTree, (accountId, folderId, folderName, specialUse) => {
|
|
|
446
446
|
markAsSeen();
|
|
447
447
|
releaseFocus();
|
|
448
448
|
loadMessages(accountId, folderId, 1, specialUse);
|
|
449
|
+
// Lazy-folder-sync: opening a folder fetches its latest from the server
|
|
450
|
+
// (fire-and-forget). The full all-folders sweep now runs only every 30
|
|
451
|
+
// min, so on-open sync is what keeps a folder you're actually looking at
|
|
452
|
+
// fresh. The folderSynced event refreshes the list when it lands. INBOX
|
|
453
|
+
// is excluded — IDLE + the 5-min quick check already keep it live, and
|
|
454
|
+
// re-syncing it on every visit is wasted work.
|
|
455
|
+
if (specialUse !== "inbox") {
|
|
456
|
+
import("./lib/api-client.js").then(m => m.syncFolderNow?.(accountId, folderId)).catch(() => { });
|
|
457
|
+
}
|
|
449
458
|
setTitle(`${APP_NAME} - ${folderName}`);
|
|
450
459
|
setNarrowFolderTitle(folderName);
|
|
451
460
|
// Record the navigation in the active tab so a later tab-switch restores
|