@bobfrankston/rmfmail 1.2.11 → 1.2.13

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
@@ -1495,23 +1495,18 @@ async function deleteSelectedMessages() {
1495
1495
  // the prompt and the undo promise must change: permanent delete always
1496
1496
  // confirms (even a single message) and can't be undone (Bob 2026-06-12).
1497
1497
  const inTrash = currentFolderSpecialUse === "trash";
1498
- // SAFETY GATE.
1499
- // - In Trash: any delete is permanent → always confirm, warn it's final.
1500
- // - Elsewhere: a single delete is instant (quick triage); a BULK delete
1501
- // confirms, because `Ctrl+A` selects every visible row and in All
1502
- // Inboxes that's a scattered screenful exactly what silently trashed
1503
- // 114 of Bob's messages on 2026-06-12.
1498
+ // SAFETY GATE — only for the IRREVERSIBLE action.
1499
+ // - In Trash: delete is permanent → confirm (Bob explicitly wanted this).
1500
+ // - Elsewhere: move to Trash with NO prompt, single or bulk. It's
1501
+ // undoable (Ctrl+Z restores the whole batch) and matches Outlook /
1502
+ // Thunderbird, which don't nag on a move-to-trash. Bob 2026-06-15:
1503
+ // "stop giving me the trash warning message. It is annoying."
1504
1504
  const n = selected.length;
1505
1505
  if (inTrash) {
1506
1506
  if (!confirm(`Permanently delete ${n} message${n === 1 ? "" : "s"} from Trash?\n\nThis cannot be undone.`)) {
1507
1507
  return;
1508
1508
  }
1509
1509
  }
1510
- else if (n > 1) {
1511
- if (!confirm(`Move ${n} messages to Trash?\n\n(Ctrl+Z restores them if this was a mistake.)`)) {
1512
- return;
1513
- }
1514
- }
1515
1510
  const statusSync = document.getElementById("status-sync");
1516
1511
  // Optimistic UI: remove from list IMMEDIATELY, then queue the IPC.
1517
1512
  // Old order awaited the daemon round-trip (IPC + DB updates) before