@bobfrankston/mailx 1.0.243 → 1.0.244
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.js +14 -0
- package/client/components/message-list.js +5 -0
- package/package.json +3 -3
package/client/app.js
CHANGED
|
@@ -752,6 +752,20 @@ window.addEventListener("message", (e) => {
|
|
|
752
752
|
if (e.data?.type === "openLink" && e.data.url) {
|
|
753
753
|
window.open(e.data.url, "_blank", "noopener,noreferrer");
|
|
754
754
|
}
|
|
755
|
+
if (e.data?.type === "linkClick" && e.data.url) {
|
|
756
|
+
const url = e.data.url;
|
|
757
|
+
if (window.mailxapi?.platform === "android") {
|
|
758
|
+
// Android: use a hidden iframe to trigger OnNavigating which opens in Chrome
|
|
759
|
+
const f = document.createElement("iframe");
|
|
760
|
+
f.style.display = "none";
|
|
761
|
+
f.src = url;
|
|
762
|
+
document.body.appendChild(f);
|
|
763
|
+
setTimeout(() => f.remove(), 500);
|
|
764
|
+
}
|
|
765
|
+
else {
|
|
766
|
+
window.open(url, "_blank", "noopener,noreferrer");
|
|
767
|
+
}
|
|
768
|
+
}
|
|
755
769
|
if (e.data?.type === "linkHover") {
|
|
756
770
|
const statusEl = document.getElementById("status-sync");
|
|
757
771
|
if (statusEl) {
|
|
@@ -122,11 +122,16 @@ export function reloadCurrentFolder() {
|
|
|
122
122
|
/** Load unified inbox (all accounts) */
|
|
123
123
|
export async function loadUnifiedInbox(autoSelect = true) {
|
|
124
124
|
unifiedMode = true;
|
|
125
|
+
searchMode = false;
|
|
126
|
+
showToInsteadOfFrom = false; // Unified inbox always shows From, not To
|
|
125
127
|
currentPage = 1;
|
|
126
128
|
totalMessages = 0;
|
|
127
129
|
const body = document.getElementById("ml-body");
|
|
128
130
|
if (!body)
|
|
129
131
|
return;
|
|
132
|
+
const fromHeader = document.querySelector(".ml-col-from");
|
|
133
|
+
if (fromHeader)
|
|
134
|
+
fromHeader.textContent = "From";
|
|
130
135
|
const savedScroll = !autoSelect ? body.scrollTop : 0;
|
|
131
136
|
const savedUid = !autoSelect ? body.querySelector(".ml-row.selected")?.getAttribute("data-uid") : null;
|
|
132
137
|
if (autoSelect) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.244",
|
|
4
4
|
"description": "Local-first email client with IMAP sync and standalone native app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/mailx.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@bobfrankston/iflow-node": "^0.1.2",
|
|
25
25
|
"@bobfrankston/miscinfo": "^1.0.8",
|
|
26
26
|
"@bobfrankston/oauthsupport": "^1.0.22",
|
|
27
|
-
"@bobfrankston/msger": "^0.1.
|
|
27
|
+
"@bobfrankston/msger": "^0.1.306",
|
|
28
28
|
"@capacitor/android": "^8.3.0",
|
|
29
29
|
"@capacitor/cli": "^8.3.0",
|
|
30
30
|
"@capacitor/core": "^8.3.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@bobfrankston/iflow-node": "^0.1.2",
|
|
79
79
|
"@bobfrankston/miscinfo": "^1.0.8",
|
|
80
80
|
"@bobfrankston/oauthsupport": "^1.0.22",
|
|
81
|
-
"@bobfrankston/msger": "^0.1.
|
|
81
|
+
"@bobfrankston/msger": "^0.1.306",
|
|
82
82
|
"@capacitor/android": "^8.3.0",
|
|
83
83
|
"@capacitor/cli": "^8.3.0",
|
|
84
84
|
"@capacitor/core": "^8.3.0",
|