Bug 117731 - Account removal: messages instantly deleted
Summary: Account removal: messages instantly deleted
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.8.2
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-05 17:19 UTC by Adam Porter
Modified: 2012-12-01 17:23 UTC (History)
3 users (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 Adam Porter 2005-12-05 17:19:47 UTC
Version:           1.8.2 (using KDE KDE 3.4.2)
Installed from:    Debian testing/unstable Packages

I just noticed that when you click the "Remove" button to remove an account (in this case, an IMAP account), the messages on disk are instantly deleted.  They're just gone.  They aren't even moved to the trash:/ system.

In this case it was ok, because it was an account I was using to test KMail's IMAP support.  But if I had accidentally chosen the wrong account when I clicked "Remove", it could have been bad.

IMHO, two things need to be changed:

1.  There should be a simple prompt asking the user if he's sure he wants to remove the account, and warning him that the messages in it will be deleted.
2.  When an account is actually removed, the account's root folder (containing all subfolders and all messages) should be moved to the trash:/ bin.  If possible, it should be given a descriptive name (like "Kmail POP3 account: bob@somewhere") so the user can find it easily if he needs to dig it out of the trash.

I'm filing this as a bug because it could result in accidental data loss.
Comment 1 Carsten Burghardt 2005-12-13 17:38:37 UTC
Moving local messages from that account to a system trash is feature request. 
Imap messages are not deleted because they reside on the server.
Comment 2 Carsten Burghardt 2005-12-13 17:39:01 UTC
Changing severity.
Comment 3 Adam Porter 2005-12-20 23:48:41 UTC
Thanks for your followup.

I understand that they were IMAP messages, but it still seems unsafe to me to simply wipe them out instantly; what if I had been having a problem with my IMAP server too?  Then they could all have been lost.

Local messages, at least, should be moved to trash.  It's just too easy to remove an account and have all of its messages go bye-bye.  :)
Comment 4 Björn Ruberg 2009-12-24 14:30:18 UTC
Considering this unneeded. When someone deletes an account, he probably don't wants the mails anymore. And if he still wants them, he can copy them first. 

Kmail warns about the deletion of the content.
Comment 5 Bernd Oliver Sünderhauf 2012-11-25 00:21:23 UTC
(In reply to comment #4)
> Kmail warns about the deletion of the content.

The OR said:
> 1.  There should be a simple prompt asking the user if he's sure...

So this seems to be fixed between 2005 and 2009, so should be "RESOLVED FIXED" not "WONTFIX".
(This might look like nitpicking, but incorrect WONTFIXes:
- irritate users searching for a similar bug, requiring them read more than necessary
- understate the bugfixing efforts
And there are many incorrect WONTFIXES around!)