Version: (using KDE KDE 3.1) Installed from: RedHat RPMs After having accidentally deleted messages (thanks to buggy message selection), there was no possibility to undo the deletion (when I select Edit->Undo, I get an error dialog stating that there is nothing to undo).
The messages were deleted by clicking on a message, holding the SHIFT key, then clicking on another message to select all messages between the two I clicked on. I then pressed DEL. This caused the selected messages to be placed in the "trash" folder on my IMAP server, according to the setting in Network->Receiving->Modify Account.
If you press DEL, you delete messages irrevocably. If you just want to move to the trashcan, you can use the D key. If the behaviour doesn't suit you, you can remap the keyboard shortcuts. That change is shown in big letters in KMail's Introduction (Help | KMail Introduction)
Hmm... I was wrong in the other comment. DEL invokes the "Move to Trash" action. Immediate deletion is mapped to the key combination Shift+DEL. If I delete (move to trash) then do Edit | Undo, the message gets restored. But I'm not using IMAP. I don't know if this could be the cause.
It depends on your imap server. What are you using?
I think the IMAP server is UW, but from a user's perspective I'm not sure how this depends on the server: It appears the KMail simply moves the message from one of my regular mailboxes into a folder called "Trash" on the same IMAP server (I configured KMail to do this, as stated previously in this bug). I would have thought it was possible to perform an undelete by moving the message back to the folder it was last stored in.
The server needs to support UIDPLUS so that kmail knows which message is used for undo. UW imap doesn't support this. Perhaps somebody will implement this in the next kmail version.
The current development version of kmail, which will be part of kde 3.2, tries to keep serial numbers across moves. This works for all but older and buggy UW servers which change uid validity on each put of a message to a folder. That means that usually undo will be possible except with such servers. Since there is nothing we can do to fix that and what we can do is now attempted, I will close this bug report.
I'm using kde 3.3 and have the same problem. When I click "d" the message goes to the trash, but when I click in "Undo" I get the message that there's nothing to undo. I use POP3.
Paulo, what happens if you select 2 msgs, and click 'edit|move to trash' then click 'edit|undo', if only 1 message is restored then see Bug 88532.