Since Mailspring version 1.17.2, undoing an email deletion using Ctrl+Z no longer works when the email is deleted using the Delete (DEL) key.
This worked correctly in version 1.17.1. The issue is present in all versions starting from 1.17.2.
The problem occurs on multiple accounts, including Microsoft Outlook and a standard IMAP account.
To Reproduce…
Steps to reproduce the behavior:
Open Mailspring
Select an email in the inbox
Press the Delete (DEL) key to delete the email
Press Ctrl+Z to undo the deletion
Expected Behavior
The deleted email should be restored to its original folder (Inbox or previous folder), as it was in version 1.17.1.
Screenshots
Nothing happens when pressing Ctrl+Z.
The email remains in the Deleted folder.
No error message or notification is shown.
Setup
OS and Version:
Windows 10 22h2 19045.6809
Installation Method:
EXE installer downloaded from the official GitHub releases
Mailspring Version:
Affected: 1.17.2 and later
Last working version: 1.17.1
Email Account Types:
Microsoft Outlook
Standard IMAP account
(The issue occurs on all tested accounts)
Keyboard Layout:
AZERTY
Additional Context
The issue is 100% reproducible.
No relevant errors were found in the logs.
The problem appears to be a regression introduced in version 1.17.2.
Hi everyone – this should be resolved in Mailspring 1.19.0, which was just released. Sorry for the hassle, we’ve added some automated test coverage to avoid regressions in this in the future. It looks like a Typescript upgrade caused a change to property initialization and made mail operations default-not-undoable.
Thanks for the quick fix and for looking into this issue. I’ve updated to Mailspring 1.19.0 and can confirm that the problem with Ctrl+Z not restoring emails deleted via the Delete key is now resolved on my side.
This was fixed in v1.19.0. Please update to v1.21.1 (latest) — Ctrl+Z should restore archived/deleted emails correctly. Note that undo also appears as a banner at the bottom of the screen immediately after the action, giving you a few seconds to cancel it.