From 90cf14b0b23218f0ca01a280998e855a00b47567 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 20 Aug 2026 18:38:13 +0200 Subject: fix(config): reject garbage numerics instead of silently reading zero, item 123 toInt() and toLongLong() return 0 on failure rather than the default, so a typo in autosave_interval_ms produced a zero-interval timer. That timer is restarted on every keystroke, so it would fire on the next event-loop pass and turn a 30 second debounce into a Maildir write per keystroke, each one uploaded by mbsync: exactly the behaviour the debounce exists to prevent. This file already had the right shape in five places, a checked parse that reports the bad value and keeps the default. The [compose] keys were the only numerics skipping it. The interval is also clamped, since nothing assigns a meaning to a zero or negative autosave. quote_position now warns on an unrecognised value, matching sync_on_exit, language and date_format; the only silent fallbacks in this file are for absent keys rather than malformed ones. And a missing `sent` folder is a notice rather than a problem, because the spec blesses that configuration and a modal on every launch for a permanently correct setup is how users learn to dismiss dialogs unread. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_015muoUo2GdxmBDSp5vjYcbE --- translations/qtmaildir_it_IT.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'translations') diff --git a/translations/qtmaildir_it_IT.ts b/translations/qtmaildir_it_IT.ts index edc9d5e..4dbc62d 100644 --- a/translations/qtmaildir_it_IT.ts +++ b/translations/qtmaildir_it_IT.ts @@ -47,6 +47,22 @@ Account '%1' has no trash folder configured; add a 'trash' key to its section. Delete will not work for this account until it does. L'account '%1' non ha un cestino configurato; aggiungere una chiave 'trash' alla sua sezione. L'eliminazione non funzionerà per questo account finché non verrà fatto. + + [compose] quote_position '%1' is not recognised; expected above or below. Using above. + [compose] quote_position '%1' non è riconosciuto; atteso above o below. Verrà usato above. + + + [compose] autosave_interval_ms '%1' is not a number; using %2. + [compose] autosave_interval_ms '%1' non è un numero; verrà usato %2. + + + [compose] send_delay_ms '%1' is not a number; using %2. + [compose] send_delay_ms '%1' non è un numero; verrà usato %2. + + + [compose] attachment_warn_bytes '%1' is not a number; using %2. + [compose] attachment_warn_bytes '%1' non è un numero; verrà usato %2. + Startup account '%1' is not a configured account; starting on all accounts. L'account iniziale '%1' non è un account configurato; si parte da tutti gli account. -- cgit v1.2.3