@bobfrankston/rmfmail 1.2.281 → 1.2.282

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 (33) hide show
  1. package/.commitmsg +62 -63
  2. package/client/android-bootstrap.bundle.js +72 -3
  3. package/client/android-bootstrap.bundle.js.map +2 -2
  4. package/client/app.bundle.js +9 -0
  5. package/client/app.bundle.js.map +2 -2
  6. package/client/components/message-viewer.js +23 -0
  7. package/client/components/message-viewer.js.map +1 -1
  8. package/client/components/message-viewer.ts +25 -0
  9. package/client/styles/components.css +17 -0
  10. package/npmchanges.md +66 -0
  11. package/package.json +5 -5
  12. package/packages/mailx-imap/package-lock.json +2 -2
  13. package/packages/mailx-imap/package.json +1 -1
  14. package/packages/mailx-settings/package.json +1 -1
  15. package/packages/mailx-store/package.json +1 -1
  16. package/packages/mailx-store/store.d.ts +4 -1
  17. package/packages/mailx-store/store.d.ts.map +1 -1
  18. package/packages/mailx-store/store.js +11 -3
  19. package/packages/mailx-store/store.js.map +1 -1
  20. package/packages/mailx-store/store.ts +14 -3
  21. package/packages/mailx-store-web/package.json +1 -1
  22. package/packages/mailx-types/index.d.ts +2 -2
  23. package/packages/mailx-types/index.d.ts.map +1 -1
  24. package/packages/mailx-types/index.js +1 -1
  25. package/packages/mailx-types/index.js.map +1 -1
  26. package/packages/mailx-types/index.ts +2 -2
  27. package/packages/mailx-types/package.json +1 -1
  28. package/packages/mailx-types/trust.d.ts +26 -1
  29. package/packages/mailx-types/trust.d.ts.map +1 -1
  30. package/packages/mailx-types/trust.js +131 -5
  31. package/packages/mailx-types/trust.js.map +1 -1
  32. package/packages/mailx-types/trust.ts +155 -5
  33. /package/packages/mailx-imap/{node_modules.npmglobalize-stash-65528 → node_modules.npmglobalize-stash-56556}/.package-lock.json +0 -0
@@ -3107,6 +3107,15 @@ async function showMessage(accountId, uid, folderId, specialUse, isRetry = false
3107
3107
  });
3108
3108
  }
3109
3109
  bodyEl.innerHTML = "";
3110
+ const spam = msg.spamScore;
3111
+ if (spam && Number.isFinite(spam.score)) {
3112
+ const level = spam.flagged ? "high" : spam.score >= spam.threshold / 2 ? "mid" : "low";
3113
+ const chip = document.createElement("div");
3114
+ 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." : level === "mid" ? "Below your server's spam threshold, but more than halfway to it." : "Well below your mail server's spam threshold.";
3116
+ chip.textContent = `spam score ${spam.score} of ${spam.threshold}`;
3117
+ bodyEl.appendChild(chip);
3118
+ }
3110
3119
  const trust = msg.trust || [];
3111
3120
  if (trust.length) {
3112
3121
  const worst = trust.some((f) => f.severity === "danger") ? "danger" : "caution";