@bobfrankston/rmfmail 1.2.284 → 1.2.286

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.
Files changed (32) hide show
  1. package/.commitmsg +43 -37
  2. package/TODO.md +2 -0
  3. package/client/android-bootstrap.bundle.js +202 -19
  4. package/client/android-bootstrap.bundle.js.map +2 -2
  5. package/client/app.bundle.js +7 -4
  6. package/client/app.bundle.js.map +2 -2
  7. package/client/components/message-viewer.js +32 -9
  8. package/client/components/message-viewer.js.map +1 -1
  9. package/client/components/message-viewer.ts +36 -10
  10. package/client/styles/components.css +9 -0
  11. package/docs/spam-false-positives.md +208 -0
  12. package/npmchanges.md +80 -0
  13. package/package.json +1 -1
  14. package/packages/mailx-imap/package-lock.json +2 -2
  15. package/packages/mailx-imap/package.json +1 -1
  16. package/packages/mailx-service/index.ts +20 -3
  17. package/packages/mailx-service/package.json +1 -1
  18. package/packages/mailx-settings/docs/spam-false-positives.md +208 -0
  19. package/packages/mailx-settings/package.json +1 -1
  20. package/packages/mailx-store/package.json +1 -1
  21. package/packages/mailx-store/store.d.ts.map +1 -1
  22. package/packages/mailx-store/store.js +7 -3
  23. package/packages/mailx-store/store.js.map +1 -1
  24. package/packages/mailx-store/store.ts +7 -3
  25. package/packages/mailx-store-web/package.json +1 -1
  26. package/packages/mailx-types/package.json +1 -1
  27. package/packages/mailx-types/trust.d.ts +16 -3
  28. package/packages/mailx-types/trust.d.ts.map +1 -1
  29. package/packages/mailx-types/trust.js +262 -23
  30. package/packages/mailx-types/trust.js.map +1 -1
  31. package/packages/mailx-types/trust.ts +343 -25
  32. /package/packages/mailx-imap/{node_modules.npmglobalize-stash-83688 → node_modules.npmglobalize-stash-50896}/.package-lock.json +0 -0
@@ -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 level = spam.flagged ? "high" : "mid";
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
- chip.title = 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.";
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">${worst === "danger" ? "This message is not what it says it is" : "Check this message before acting on it"}</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("") + `<div class="mv-trust-foot">Links and attachments here should not be opened.</div>`;
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) {