Undo send button

Description

Restores Mailspring’s built-in Sending soon… toast in the main window when sending from a separate composer window. The existing countdown, Undo, and Send now instead controls remain Mailspring’s own controls.

Why it works

In Mailspring 1.25.0, SyncbackMetadataTask calculates canBeUndone in its constructor. The cross-window action bridge reconstructs an empty task and then fills it with fromJSON, leaving that flag false even when undoValue is present. UndoRedoStore therefore ignores the task and shows no toast.

This plugin wraps that task’s fromJSON in the main window to recalculate the flag after loading the data. It restores the original method when disabled. It adds no sending mechanism, network access, or dependencies.

Install

  1. Download mailspring-outgoing-undo.zip from the latest release.
  2. Extract the ZIP. Copy the mailspring-outgoing-undo folder into Mailspring’s packages directory (create packages if it doesn’t exist).
  3. Save open drafts and restart Mailspring.
  4. Enable a nonzero Undo Send delay in Mailspring’s sending preferences.

Typical package directories:

Platform Directory
macOS ~/Library/Application Support/Mailspring/packages/
Linux ~/.config/Mailspring/packages/
Windows %APPDATA%\Mailspring\packages\

Linux installations using a custom XDG_CONFIG_HOME, Snap, or a custom config directory may use a different location. Developer > Show Mailsync Logs opens the configuration directory; create/use its packages subdirectory. The installed folder must contain package.json directly, without an extra nested folder. No npm install or build is needed.

To remove it, delete mailspring-outgoing-undo from the packages directory and restart Mailspring.

Getting Help

Open an issue with your Mailspring version, operating system, Undo Send delay, and whether the message was sent inline or from a separate window. Do not include private message content or account credentials.