From dfb36213c03e678178ec1abb2327266d23015bc0 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 25 Aug 2026 18:49:55 +0200 Subject: feat: empty the trash, the one action that asks first Item 118, unblocked by 103. Message > Empty trash..., scoped to the account selector, with no default shortcut. purgeMessages() is a separate worker entry point from moveMessages() rather than a flag on it, because the two look alike and only one can be undone. It takes named ids, never a folder sweep, so the blast radius is what the dialog enumerated and the user confirmed, and it deletes every file of a message: notmuch deduplicates by Message-ID, so leaving one behind leaves the message alive in the folder the user emptied. It confirms, naming the count and the account, defaulting to Cancel. That breaks CLAUDE.md's no-confirmation rule deliberately and the rule now records it as its single exception, in the same paragraph: a purge has no inverse to push onto the undo stack, so the protection the rule provides has to come from somewhere, and the dialog is where. Two defects found rather than reasoned. The count claimed messages whose files were already gone, overstating an irreversible action; an absent file is correctly not an error, but that is not the same as destroyed. And the user's hand test found the list still showing mail that no longer existed: a purge removes rows rather than changing them, so there is no optimistic update to apply and nothing was connected to messagesPurged at all. It re-runs the current query now. Verified against the live index after the user emptied one real account's trash: zero files on disk, zero in the index. The suite is 37 of 38, the failure being item 136 on an unrelated path. Ten new strings translated, lrelease reports 0 unfinished. Item 168 is filed from the same hand test, on Delete being offered on mail already in the trash. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01HFuRPtzFrSxCQjFk6tq7gD --- translations/qtmaildir_it_IT.ts | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'translations') diff --git a/translations/qtmaildir_it_IT.ts b/translations/qtmaildir_it_IT.ts index a976f4e..22f8485 100644 --- a/translations/qtmaildir_it_IT.ts +++ b/translations/qtmaildir_it_IT.ts @@ -551,6 +551,41 @@ Il messaggio È stato inviato. Non inviarlo di nuovo. %n messaggi non sono stati ripristinati: non appartengono ad alcun account configurato. + + No trash folder is configured + Nessuna cartella cestino configurata + + + Not connected to the mail index + Non connesso all'indice della posta + + + The trash is already empty + Il cestino è già vuoto + + + every account + ogni account + + + Empty trash + Svuota cestino + + + Permanently delete %n message(s) from the trash of %1? + + Eliminare definitivamente %n messaggio dal cestino di %1? + Eliminare definitivamente %n messaggi dal cestino di %1? + + + + This cannot be undone. + Questa operazione non può essere annullata. + + + Delete permanently + Elimina definitivamente + Mail tagged deleted but not in a trash folder. Select what should go and press Delete. Posta etichettata come eliminata ma non in un cestino. Seleziona cosa deve essere rimosso e premi Elimina. @@ -751,6 +786,14 @@ Il messaggio È stato inviato. Non inviarlo di nuovo. Show mail tagged deleted that is not in a trash folder Mostra la posta etichettata come eliminata che non si trova in un cestino + + Empt&y trash... + S&vuota cestino... + + + Permanently delete every message in the trash + Elimina definitivamente ogni messaggio nel cestino + Add spam and remove inbox on whole threads Aggiunge spam e rimuove inbox su intere conversazioni @@ -1042,6 +1085,13 @@ Il messaggio È stato inviato. Non inviarlo di nuovo. <h3>qtmaildir %1</h3><p>A Qt6 mail client for notmuch-indexed Maildirs.</p><p>Reads and organizes local mail. Fetching and sending are handled by external scripts.</p><p>Copyright &copy; 2026 Danilo M. &lt;danix@danix.xyz&gt;<br>Licensed under the GNU General Public License version 2.</p><p>Developed with AI assistance. All code is reviewed, tested and curated by the maintainer.</p> <h3>qtmaildir %1</h3><p>Un client di posta Qt6 per Maildir indicizzate con notmuch.</p><p>Legge e organizza la posta locale. Scaricamento e invio sono affidati a script esterni.</p><p>Copyright &copy; 2026 Danilo M. &lt;danix@danix.xyz&gt;<br>Distribuito secondo la GNU General Public License versione 2.</p><p>Sviluppato con l'assistenza dell'IA. Tutto il codice è riveduto, testato e curato dal manutentore.</p> + + Deleted %n message(s) permanently + + %n messaggio eliminato definitivamente + %n messaggi eliminati definitivamente + + %n unread -- cgit v1.2.3