You may have noticed that the UNDO command in Apple’s Mail.app does not function as expected with Gmail IMAP. For example, when you delete a message and then press Command-Z, nothing happens. Fret no more because there is a workaround to correct this unexpected behavior.
- Go to your “Mail Settings” in Gmail.
- Click the “Forwarding and POP/IMAP” tab.
- Click “Auto-Expunge off – Wait for the client to update the server.”
- Click “Save Changes” at the bottom of the page.