Bug 55891 - can't undo deletion of messages
Summary: can't undo deletion of messages
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-12 23:15 UTC by Michael Wardle
Modified: 2007-12-11 17:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Wardle 2003-03-12 23:15:24 UTC
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).
Comment 1 Michael Wardle 2003-03-12 23:18:21 UTC
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. 
 
Comment 2 Thiago Macieira 2003-03-12 23:36:27 UTC
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) 
Comment 3 Thiago Macieira 2003-03-12 23:41:06 UTC
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. 
Comment 4 Carsten Burghardt 2003-03-15 13:07:43 UTC
It depends on your imap server. What are you using? 
Comment 5 Michael Wardle 2003-03-16 22:35:05 UTC
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. 
 
Comment 6 Carsten Burghardt 2003-03-16 22:46:06 UTC
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. 
Comment 7 Till Adam 2003-09-21 11:38:09 UTC
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.  
Comment 8 Paulo Eduardo Neves 2004-09-15 05:23:08 UTC
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.
Comment 9 earlgrey 2004-09-15 09:33:57 UTC
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.