Bug 154252 - Emails disappear from inbox using dIMAP
Summary: Emails disappear from inbox using dIMAP
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: disconnected IMAP (show other bugs)
Version: enterprise
Platform: unspecified Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-17 23:03 UTC by MartinG
Modified: 2015-04-12 10:18 UTC (History)
0 users

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 MartinG 2007-12-17 23:03:58 UTC
Version:           1.2.4 (enterprise 0.20071123.740460) (using KDE 3.5.8-7.fc8 Fedora, Fedora release 8 (Werewolf))
Compiler:          Target: i386-redhat-linux
OS:                Linux (i686) release 2.6.23.8-63.fc8

Hi.
I have used disconnected IMAP in KMail quite successfully for a long time, but after the (couple of) last upgrades I have started losing emails again.

This is not the for so many familiar "No subject" bug - the emails seem to get deleted entirely from the inbox when syncing. I am currently using kdepim 6:3.5.8-10.svn20071129.ent.fc8.i386, but it might be that the bug was introduced in kdepim 6:3.5.8-5.svn20071013.ent.fc8.i386.

I have been careful to only let ONE email program talk to the IMAP server at the same time, and to let KMail finish the synchronization before I disconnect my laptop.

This is what I did the last time I lost all (four) messages in my inbox:
* Checked mail at work, let KMail finish synchronizing and
* pressed "Work offline" from the File menu.
* Disconnected my laptop, put it to sleep.
* Connected to my home WLAN, did some other work.
* Noticed a message from KMail, telling me it lost the connection - but why? it was told to "work offline". I have noticed this several times before, through several versions of KMail/Kontact.
* Pressed Ctrl-L to check email, chose "Work online" from the popup.
* Watched the four messages getting wiped out from my inbox.

Some of the messages was old (say one day or more), and at least one message was quite new, but I am quite certain that it was synced a couple of times before I disconnected.

I have contacted the admins at work regarding the problem, and there has been some server updates that might be of importance. At least, a change of software on the server side solved my problem with messages getting marked as read - see my comment http://bugs.kde.org/show_bug.cgi?id=121969#c11 regarding UW-IMAP vs Courier IMAP. But that was another bug, and another server software upgrade. Not sure what the email server at work is running now, though.

They did rename some folders though, and I have changed the settings in KMail accordingly (sent-mail -> Sent, spam -> Spam, etc).

What can I do to isolate this bug? I would very much like to provide some more info so this bug does not end up like the too confusing bug 104956.

I am running Fedora 8 and don't really want to compile kdepim from source, but if there is some -debuginfo package available somewhere I guess that would help? (I could not find any using yum).

Filters:
I have several filters running, but the messages that stayed in the inbox was obviously not moved by any of the them. I just read Bug 135376, and came to think about the bogofilter I have running - I'll turn that off and see if that helps. 

Disk space: I have not run out of disk space at any time the last month.

I will be perfectly happy with a reliable workaround for this problem (still using dIMAP), and wait some months for KDE 4.x (x > 0 it seems) for the KDEPIM there.

I just read bug 63353 "Disconnected IMAP wipes email" and it might be that what I am reporting simply is a duplicate of that one (from 2003).

Maybe the server software is the key - what should I ask the server admins at work - what info do you need? Name of email server software/version?

Actually, as I write this, KMail has checked mail several times, and it seems to be duplicating some messages each time. This applies to filtered messages. I checked the plain text of two duplicate messages and found that only X-UID was different, ie. "X-UID: 198" to "X-UID: 198".

Uhm.

best regards,
MartinG

Possibly related:
Bug 99278: Kmail deletes local dimap folders on broken connection
Bug 104320: status flags of messages of a DIMAP account get lost on synchronizing via check mail
Bug 114163: dangerous handling of dimap-folders
Comment 1 MartinG 2008-01-12 12:56:08 UTC
The last line should of course read 
"X-UID: 198" to "X-UID: 199"
Comment 2 Laurent Montel 2015-04-12 10:18:44 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.