kmail deleted contents of inbox with dimap

Bug #158978 reported by Robin Sheat
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KDE PIM
Unknown
High
kdepim (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I use kmail on my laptop with disconnected IMAP, and just had it delete the contents of my inbox.

I was having connection issues with my IMAP server, and pressed F5 to check for new mail. It popped up and said something about not being in sync (it made a reference to sync status 7), and did I want to resync or not. This wasn't a very clear message, but I presumed it was safe and told it to go ahead. It churned for a few minutes, and when it was done the only message there was one that had arrived while it was doing this. Checking the mail server showed that the maildir files were gone.

This seems Really Bad. Fortunately, there's nothing vital there (although I'd rather not have lost 1,500 messages).

I have many folders under the inbox, and they appear to be fine.

Revision history for this message
Luka Renko (lure) wrote :

Is this on Hardy (with KDE 3.5.9)? What IMAP server are you using?
Is the problem reproducible? Do e-mail get moved to trash folder or are they just lost?

BTW, I have seen something like this in past (3.5.7), but not with recent releases (I am using it with Exchange 2003 IMAP Server).

Changed in kdepim:
assignee: nobody → lure
status: New → Incomplete
Revision history for this message
Robin Sheat (eythian) wrote : Re: [Bug 158978] Re: kmail deleted contents of inbox with dimap

On Friday 02 May 2008 03:47:01 Luka Renko wrote:
> Is this on Hardy (with KDE 3.5.9)? What IMAP server are you using?
> Is the problem reproducible? Do e-mail get moved to trash folder or are
> they just lost?
This was gutsy. I don't know if it's reproducible, I don't want to try, it
deleted my inbox. It didn't go to trash, basically it thought that the
messages shouldn't be there any more and removed them all.

> BTW, I have seen something like this in past (3.5.7), but not with
> recent releases (I am using it with Exchange 2003 IMAP Server).
This has courier imap on the server, running on 6.06LTS.

--
Robin <email address hidden> JabberID: <email address hidden>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D

Revision history for this message
Yözen Hernández (yhernand) wrote :

I just had this problem today and posted a comment on the bug filed upstream (http://bugs.kde.org/show_bug.cgi?id=140443#c5). This bug most definitely exists as it has affected me once before (as I mentioned in my comment), but I did not report the bug since I could not reproduce it. I still do not know how it happens, but it seems like it does this when it has trouble connecting. Now, KMail crashes when attempting to refresh the IMAP cache, preventing me from even using it.

I am running Hardy with KDE 3.5.9, all up-to-date. Please let me know if I can provide more information (and how to get it). The mail SEEMS to just have the inbox label removed from it, so it is only visible under "All Mail" or any other label it has, and I did not see it in the trash.

Changed in kdepim:
status: Unknown → Confirmed
Changed in kdepim:
importance: Undecided → Low
status: Incomplete → Confirmed
importance: Low → Medium
Revision history for this message
domhans (domhans) wrote :

Same here. Kmail deleted all mail ininbox folder. I had these bug two times now. Like already mentioned, seems that if kmail has some connection errors its not able to show inbox content. I still had acces to my mail via web-interface.
After killin kmai (killall kontact), inbox folder was empty. Nothing moved to trash...

I'm running Intrepid with KDE 4.1.3, all up to date.
Think I'll switch to pop3 until this bug is fixed

Luka Renko (lure)
Changed in kdepim (Ubuntu):
assignee: Luka Renko (lure) → nobody
Revision history for this message
Luis Davila (luisfer) wrote :

hi, even if somes months after the first comment i had the same bug. I use Kubuntu Karmic alpha 6 with latest updates and:

kmail --version
Qt: 4.5.2
KDE: 4.3.1 (KDE 4.3.1)
KMail: 1.12.1

I had my maildir completely deleted (not moved to trash) twice with IMAP DISSCONECTED account with gmail server (the first time one month ago, with karmic too). In the same session, beginning the session i didn't problem, i closed my kontact program and after re-start kontact and in this moment i had some messages that isn't possible to access all different folders of kmails (3 IMAPd accounts, all gmail) , and the messages that there are a permission problem in thats directories. My Kmail icon in kontact was empty, like the first utilization. and no more maildirs in /.kde/share/apps/kmail directory, and all permission in dir are ok.. I don't know if a bug related to KDE 4.3 or to Kubuntu Karmic. thanks....

Revision history for this message
Łukasz Kuryło (lukasz-kurylo) wrote :

Just lost my d-imap folders. Agrrrr.

Revision history for this message
Florian Aldehoff (aldehoff) wrote :

I can confirm this on my machine:

kmail --version
Qt: 3.3.8b
KDE: 3.5.10
KMail: 1.9.9
Debian 5.0.2

I'm using dIMAP for a Gmail account. On first connect in the morning I got a cryptic message complaining about non-readable contents on the IMAP server. All folders but my inbox were synchronized and the inbox was displayed as empty. Irritated by this I pressed the button a second time and the inbox was readable this time, but kmail instantly deleted all mails on the server (as it notified in the status bar) and then just downloaded the new stuff that had come in since I had left work the previous evening. It basically deleted several hundred messages in a few seconds. None of the subfolders were affected, though this has happened previously on my private account using another machine (only a subset of the inbox contents was deleted then, same Kmail version and setup).

It seems like the server error caused Kmail to update the local cache (deleting messages that were there previously) - which it should not do if there's been only a transmission error and no real modification on the server side. Then upon the next synchronisation it updates the server by actually deleting all remote messages as well.

Revision history for this message
TrueSatan (7-postmaster-customer-opinions-net) wrote :

I've had exactly the same bug...precisely as per #7 above with all my mails completely eaten by Kmail. In this state Kmail is a client that's dangerous to use.

Changed in kdepim:
status: Confirmed → Invalid
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Should be fixed in KDE 4.2 or later.

Changed in kdepim (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Neo (suski-radek) wrote :

I have similar problem with the version 1.13.5 on Kubuntu 10.10.

- I got message in the notification area about new email.
- I have also Zimbra on my server installed so I'm checking the Inbox directly in Zimbra and there is indeed new message
- Then I'm checking in KMail - no message there
- Checking again in Zimbra - message is still there
- Refreshing folder in KMail - still nothing there
- Checking again in Zimbra - all messages are deleted

Changed in kdepim:
status: Invalid → Unknown
Changed in kdepim:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.