@bobfrankston/rmfmail 1.2.285 → 1.2.287
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/.commitmsg +28 -32
- package/TODO.md +2 -0
- package/client/android-bootstrap.bundle.js +202 -19
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/client/app.bundle.js +7 -4
- package/client/app.bundle.js.map +2 -2
- package/client/components/message-viewer.js +32 -9
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +36 -10
- package/client/compose/compose.bundle.js +106 -38
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/harper-lint.js +125 -42
- package/client/compose/harper-lint.js.map +1 -1
- package/client/compose/harper-lint.ts +120 -40
- package/client/styles/components.css +9 -0
- package/docs/spam-false-positives.md +208 -0
- package/npmchanges.md +86 -0
- package/package.json +6 -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.map +1 -1
- package/packages/mailx-service/index.js +20 -3
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +20 -3
- package/packages/mailx-service/package.json +1 -1
- package/packages/mailx-settings/docs/spam-false-positives.md +208 -0
- package/packages/mailx-settings/package.json +1 -1
- package/packages/mailx-store/package.json +1 -1
- package/packages/mailx-store/store.d.ts.map +1 -1
- package/packages/mailx-store/store.js +7 -3
- package/packages/mailx-store/store.js.map +1 -1
- package/packages/mailx-store/store.ts +7 -3
- package/packages/mailx-store-web/package.json +1 -1
- package/packages/mailx-types/package.json +1 -1
- package/packages/mailx-types/trust.d.ts +16 -3
- package/packages/mailx-types/trust.d.ts.map +1 -1
- package/packages/mailx-types/trust.js +262 -23
- package/packages/mailx-types/trust.js.map +1 -1
- package/packages/mailx-types/trust.ts +343 -25
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-85316 → node_modules.npmglobalize-stash-38644}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -3109,19 +3109,22 @@ async function showMessage(accountId, uid, folderId, specialUse, isRetry = false
|
|
|
3109
3109
|
bodyEl.innerHTML = "";
|
|
3110
3110
|
const spam = msg.spamScore;
|
|
3111
3111
|
if (spam && Number.isFinite(spam.score) && (spam.flagged || spam.score >= spam.threshold / 2)) {
|
|
3112
|
-
const
|
|
3112
|
+
const benign = !!spam.proved || spam.kind === "bulk";
|
|
3113
|
+
const level = benign ? "bulk" : spam.flagged ? "high" : "mid";
|
|
3113
3114
|
const chip = document.createElement("div");
|
|
3114
3115
|
chip.className = `mv-spamscore mv-spamscore-${level}`;
|
|
3115
|
-
|
|
3116
|
+
const why = (spam.reasons || []).length ? "\n\n" + spam.reasons.join("\n") : "";
|
|
3117
|
+
chip.title = (level === "bulk" ? spam.proved ? "Scored by bulk-mail or blocklist rules; the sending domain passed DMARC, so the sender is proved." : "Every rule that scored is a bulk-mail test \u2014 none of them test who sent this." : level === "high" ? "Your mail server scored this at or above its spam threshold and flagged it." : "Below your server's spam threshold, but more than halfway to it.") + why;
|
|
3116
3118
|
chip.textContent = `spam score ${spam.score} of ${spam.threshold}`;
|
|
3117
3119
|
bodyEl.appendChild(chip);
|
|
3118
3120
|
}
|
|
3119
3121
|
const trust = msg.trust || [];
|
|
3120
3122
|
if (trust.length) {
|
|
3121
|
-
const worst = trust.some((f) => f.severity === "danger") ? "danger" : "caution";
|
|
3123
|
+
const worst = trust.some((f) => f.severity === "danger") ? "danger" : trust.some((f) => f.severity === "caution") ? "caution" : "info";
|
|
3124
|
+
const head = worst === "danger" ? "This message is not what it says it is" : worst === "caution" ? "Check this message before acting on it" : "";
|
|
3122
3125
|
const warn = document.createElement("div");
|
|
3123
3126
|
warn.className = `mv-trust mv-trust-${worst}`;
|
|
3124
|
-
warn.innerHTML = `<div class="mv-trust-head">${
|
|
3127
|
+
warn.innerHTML = (head ? `<div class="mv-trust-head">${head}</div>` : "") + trust.map((f) => `<div class="mv-trust-item mv-trust-${escapeText(f.severity)}"><div class="mv-trust-text">${escapeText(f.text)}</div><div class="mv-trust-detail">${escapeText(f.detail)}</div></div>`).join("") + (worst === "info" ? "" : `<div class="mv-trust-foot">Links and attachments here should not be opened.</div>`);
|
|
3125
3128
|
bodyEl.appendChild(warn);
|
|
3126
3129
|
}
|
|
3127
3130
|
if (msg.hasRemoteContent) {
|