@bobfrankston/mailx-types 0.1.104 → 0.1.106
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 +1 -1
- package/trust.js +16 -1
package/package.json
CHANGED
package/trust.js
CHANGED
|
@@ -346,7 +346,22 @@ function dmarcProof(input) {
|
|
|
346
346
|
&& !fromDomain.endsWith("." + stated)) {
|
|
347
347
|
return { pass: false, failed, authFailures, domain: "", policy };
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
// 2026-09-23 — Claude Code (Fable 5.1), at Bob's direction.
|
|
350
|
+
// An aligned DMARC pass IS the identity verdict: RFC 7489 pass means SPF or
|
|
351
|
+
// DKIM verified on the domain the reader sees in From. A failed mechanism
|
|
352
|
+
// beside it is about some OTHER identity — a relay's broken body hash, a
|
|
353
|
+
// forwarder's envelope — not about the From line. This function already
|
|
354
|
+
// said so for the aligned-pass case in selfSpoof ("one failed signature on
|
|
355
|
+
// a message with an aligned pass is not evidence about the From line; the
|
|
356
|
+
// pass is"), but authFailures still carried the DKIM name up to analyze-
|
|
357
|
+
// ServerSpam, where any authFailure forces kind = "forgery" and the red
|
|
358
|
+
// "not what it says it is" banner. Eversource's payment notice (SendGrid,
|
|
359
|
+
// dkim=fail on eversource.com's own signature, dmarc=pass header.from=
|
|
360
|
+
// notifications.eversource.com policy=reject) was painted as a forgery,
|
|
361
|
+
// and the trust button — gated on no danger — never appeared. Same shape
|
|
362
|
+
// as the list-relay carve-out at the call site, generalised to the case
|
|
363
|
+
// where the server itself pronounced the aligned verdict.
|
|
364
|
+
return { pass: true, failed: false, authFailures: [], domain: stated || fromDomain, policy };
|
|
350
365
|
}
|
|
351
366
|
/** Unfold a header value the way RFC 5322 folds it: delete the line break,
|
|
352
367
|
* KEEP the whitespace that continues the line. SpamAssassin breaks its tests=
|