@bobfrankston/rmfmail 1.1.191 → 1.1.193
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 +19 -8
- 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 +15 -8
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/index.html +1 -1
- package/client/lib/api-client.js +32 -5
- package/client/lib/api-client.js.map +1 -1
- package/client/lib/api-client.ts +32 -6
- package/client/lib/mailxapi.js +1 -0
- package/client/styles/components.css +1 -1
- package/package.json +3 -3
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +20 -5
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +20 -5
- 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-53996 → node_modules.npmglobalize-stash-52192}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -98,6 +98,7 @@ __export(api_client_exports, {
|
|
|
98
98
|
showReminderPopup: () => showReminderPopup,
|
|
99
99
|
subscribeStore: () => subscribeStore,
|
|
100
100
|
syncAccount: () => syncAccount,
|
|
101
|
+
syncFolderNow: () => syncFolderNow,
|
|
101
102
|
triggerSync: () => triggerSync,
|
|
102
103
|
undeleteMessage: () => undeleteMessage,
|
|
103
104
|
unsubscribeOneClick: () => unsubscribeOneClick,
|
|
@@ -211,6 +212,9 @@ function triggerSync() {
|
|
|
211
212
|
function syncAccount(accountId) {
|
|
212
213
|
return ipc().syncAccount(accountId);
|
|
213
214
|
}
|
|
215
|
+
function syncFolderNow(accountId, folderId) {
|
|
216
|
+
return ipc().syncFolderNow?.(accountId, folderId);
|
|
217
|
+
}
|
|
214
218
|
function reauthenticate(accountId) {
|
|
215
219
|
return ipc().reauthenticate(accountId);
|
|
216
220
|
}
|
|
@@ -407,13 +411,14 @@ function installConsoleCapture() {
|
|
|
407
411
|
}
|
|
408
412
|
};
|
|
409
413
|
console.log = (...args) => {
|
|
410
|
-
forward("log", args);
|
|
411
414
|
orig.log(...args);
|
|
412
415
|
};
|
|
413
416
|
console.info = (...args) => {
|
|
414
|
-
forward("info", args);
|
|
415
417
|
orig.info(...args);
|
|
416
418
|
};
|
|
419
|
+
console.debug = (...args) => {
|
|
420
|
+
orig.debug(...args);
|
|
421
|
+
};
|
|
417
422
|
console.warn = (...args) => {
|
|
418
423
|
forward("warn", args);
|
|
419
424
|
orig.warn(...args);
|
|
@@ -422,10 +427,6 @@ function installConsoleCapture() {
|
|
|
422
427
|
forward("error", args);
|
|
423
428
|
orig.error(...args);
|
|
424
429
|
};
|
|
425
|
-
console.debug = (...args) => {
|
|
426
|
-
forward("debug", args);
|
|
427
|
-
orig.debug(...args);
|
|
428
|
-
};
|
|
429
430
|
try {
|
|
430
431
|
window.addEventListener("error", (e) => {
|
|
431
432
|
try {
|
|
@@ -442,8 +443,11 @@ function installConsoleCapture() {
|
|
|
442
443
|
window.addEventListener("unhandledrejection", (e) => {
|
|
443
444
|
try {
|
|
444
445
|
const r = e.reason;
|
|
446
|
+
const msg = r?.message || String(r);
|
|
447
|
+
if (/logClientEvent|mailxapi timeout/i.test(msg))
|
|
448
|
+
return;
|
|
445
449
|
logClientEvent("window.unhandledrejection", {
|
|
446
|
-
message:
|
|
450
|
+
message: msg,
|
|
447
451
|
stack: r?.stack || null
|
|
448
452
|
});
|
|
449
453
|
} catch {
|
|
@@ -457,7 +461,10 @@ function logClientEvent(tag, data) {
|
|
|
457
461
|
try {
|
|
458
462
|
const bridge = typeof globalThis.mailxapi !== "undefined" && globalThis.mailxapi?.isApp ? globalThis.mailxapi : window.opener?.mailxapi?.isApp ? window.opener.mailxapi : window.parent?.mailxapi?.isApp ? window.parent.mailxapi : null;
|
|
459
463
|
if (bridge?.logClientEvent) {
|
|
460
|
-
bridge.logClientEvent(tag, data);
|
|
464
|
+
const p = bridge.logClientEvent(tag, data);
|
|
465
|
+
if (p && typeof p.catch === "function")
|
|
466
|
+
p.catch(() => {
|
|
467
|
+
});
|
|
461
468
|
delivered = true;
|
|
462
469
|
}
|
|
463
470
|
} catch {
|
|
@@ -7153,6 +7160,10 @@ initFolderTree(folderTree, (accountId, folderId, folderName, specialUse) => {
|
|
|
7153
7160
|
markAsSeen();
|
|
7154
7161
|
releaseFocus();
|
|
7155
7162
|
loadMessages(accountId, folderId, 1, specialUse);
|
|
7163
|
+
if (specialUse !== "inbox") {
|
|
7164
|
+
Promise.resolve().then(() => (init_api_client(), api_client_exports)).then((m) => m.syncFolderNow?.(accountId, folderId)).catch(() => {
|
|
7165
|
+
});
|
|
7166
|
+
}
|
|
7156
7167
|
setTitle(`${APP_NAME} - ${folderName}`);
|
|
7157
7168
|
setNarrowFolderTitle(folderName);
|
|
7158
7169
|
setActiveView({ kind: "folder", accountId, folderId, specialUse }, folderName);
|