---
title: "Undo an action"
weight: 87
description: "Go back on an archive or a spam report just after doing it."
source_hash: "5452ac0c"
---

# Undo an action

After archiving or marking as spam in Lead Mode, a notification appears at the bottom of the screen with an **Undo** button. It restores the message to the exact state it was in.

## Steps

1. In Lead Mode, archive the email or mark it as spam, with the toolbar button above the email or with the keyboard (`a`, `s`).
2. The notification appears at the bottom of the screen.
3. Click **Undo** before it disappears.

## What is restored

Two things, not just the first one:

- **the message status** in Capmail (unread, read, replied, archived...);
- **its location on the mail server**: if the action had moved it to Archives or Spam, it comes back to its original folder.

## Limitations

**A deletion cannot be undone**: the email no longer exists in Capmail, so no **Undo** notification is offered. See [Delete an email](/capmail/action-supprimer-mail).

**Undo is only offered for as long as the notification is displayed.** Once it has disappeared, there is no button anymore and the `Ctrl+Z` shortcut does nothing: you have to redo the reverse path by hand (unarchive, set back to unread, move the message from your webmail).

The return to the original folder is best-effort: if the mail server is momentarily unreachable, the status is restored in Capmail but the message stays in its new folder on the server side. A later synchronization will realign them.

Finally, you can only undo on a message from a mailbox you have read access to.

## See also

- [What do you want to do?](/capmail/actions)
- [Ignore an email](/capmail/action-ignorer-mail)
- [Archive an email](/capmail/action-archiver-mail)
- [Mark an email as spam](/capmail/action-signaler-indesirable)
