@bobfrankston/rmfmail 1.2.257 → 1.2.259

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/client/app.js CHANGED
@@ -6191,9 +6191,17 @@ optAiProofread?.addEventListener("change", () => {
6191
6191
  // Off by default — enabling it leaks read-recipient domains to Spamhaus's
6192
6192
  // DNS infra, which the user should opt into knowingly.
6193
6193
  const optCheckReputation = document.getElementById("opt-check-reputation");
6194
+ // Spamhaus DQS key — optional. Spamhaus refuses DBL queries that arrive
6195
+ // through a public/open resolver (answering 127.255.255.254 for EVERY
6196
+ // domain); a free personal key routes them to dbl.dq.spamhaus.net where
6197
+ // they're answered properly. Blank = public zone, and DBL reports itself
6198
+ // unavailable when that zone refuses.
6199
+ const optSpamhausDqs = document.getElementById("opt-spamhaus-dqs");
6194
6200
  getSettings().then((s) => {
6195
6201
  if (optCheckReputation)
6196
6202
  optCheckReputation.checked = !!s.checkDomainReputation;
6203
+ if (optSpamhausDqs)
6204
+ optSpamhausDqs.value = s.spamhausDqsKey || "";
6197
6205
  }).catch(() => { });
6198
6206
  optCheckReputation?.addEventListener("change", () => {
6199
6207
  getSettings().then((settings) => {
@@ -6201,6 +6209,12 @@ optCheckReputation?.addEventListener("change", () => {
6201
6209
  saveSettings(settings);
6202
6210
  }).catch(() => { });
6203
6211
  });
6212
+ optSpamhausDqs?.addEventListener("change", () => {
6213
+ getSettings().then((settings) => {
6214
+ settings.spamhausDqsKey = optSpamhausDqs.value.trim();
6215
+ saveSettings(settings);
6216
+ }).catch(() => { });
6217
+ });
6204
6218
  // Auto mark-as-read settings (per-device localStorage; the viewer reads
6205
6219
  // these directly when showing a message). Default on with a 2s delay so
6206
6220
  // scrolling through a folder doesn't mark every glanced-at message as