@bobfrankston/mailx-store 0.1.105 → 0.1.108
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/package.json +3 -3
- package/store.js +17 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx-store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.108",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@bobfrankston/mailx-types": "^0.1.73",
|
|
13
|
-
"@bobfrankston/mailx-settings": "^0.1.
|
|
13
|
+
"@bobfrankston/mailx-settings": "^0.1.70",
|
|
14
14
|
"@bobfrankston/mailx-bus": "^0.1.2",
|
|
15
15
|
"mailparser": "^3.7.2"
|
|
16
16
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
".transformedSnapshot": {
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@bobfrankston/mailx-types": "^0.1.73",
|
|
33
|
-
"@bobfrankston/mailx-settings": "^0.1.
|
|
33
|
+
"@bobfrankston/mailx-settings": "^0.1.70",
|
|
34
34
|
"@bobfrankston/mailx-bus": "^0.1.2",
|
|
35
35
|
"mailparser": "^3.7.2"
|
|
36
36
|
}
|
package/store.js
CHANGED
|
@@ -278,11 +278,26 @@ export class Store {
|
|
|
278
278
|
// reached an address of the reader's, which permits images but is not
|
|
279
279
|
// a statement about who sent it — and the trust banner asks about the
|
|
280
280
|
// sender. (Claude Code 2026-08-28)
|
|
281
|
+
//
|
|
282
|
+
// Two lists, two questions. `senders`/`domains` came from the
|
|
283
|
+
// remote-content banner and mean "load their images"; loading someone's
|
|
284
|
+
// images implies trusting them, so they count here too.
|
|
285
|
+
// `trustedSenders`/`trustedDomains` mean ONLY "stop warning me about
|
|
286
|
+
// this sender" — Bob 2026-08-28: "I don't need the spam reminder but I
|
|
287
|
+
// don't want to say show remote content in order to prevent tracking."
|
|
288
|
+
// They must never widen allowRemote.
|
|
281
289
|
const senders = (allowList.senders || []).map((s) => (s || "").toLowerCase());
|
|
282
290
|
const domains = (allowList.domains || []).map((d) => (d || "").toLowerCase());
|
|
283
|
-
const
|
|
291
|
+
const trustedSenders = (allowList.trustedSenders || []).map((s) => (s || "").toLowerCase());
|
|
292
|
+
const trustedDomains = (allowList.trustedDomains || []).map((d) => (d || "").toLowerCase());
|
|
293
|
+
const senderTrusted = senders.includes(senderAddr) || domains.includes(senderDomain)
|
|
294
|
+
|| trustedSenders.includes(senderAddr) || trustedDomains.includes(senderDomain);
|
|
284
295
|
if (!allowRemote) {
|
|
285
|
-
|
|
296
|
+
// Deliberately NOT senderTrusted: that now also covers the
|
|
297
|
+
// quiet-the-banner list, and quieting a banner must never turn on
|
|
298
|
+
// a tracking pixel.
|
|
299
|
+
if (senders.includes(senderAddr) || domains.includes(senderDomain)
|
|
300
|
+
|| rcptAddrs.some((a) => recipients.includes(a))) {
|
|
286
301
|
allowRemote = true;
|
|
287
302
|
}
|
|
288
303
|
}
|