Bug 272093

Summary: For some imap mailboxes, Kmail 'throws out' some messages when rebuilding imap 'INBOX'
Product: [Applications] kmail2 Reporter: Alexander Bezrukov <espera.dios>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alexander Bezrukov 2011-04-30 21:23:55 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

For _some_ imap mail boxes, when I fire up Kmail it shows the message list correctly (say, 257 messages). Then either after some time (after several auto-checks) or when I right-click it and tell to rescan, it first shows some messages duplicated and the list is about 300 messages, and if I do a rescan for a second time, it then gets reduced to a list of, say, 122 messages only and never corrects itself until KMail is quitted and restarted.

Actually, this never happens to some imap servers, but always to some other, always the same ones, so I figure this is in part a server-side problem, but it never happens with other mail clients I tried to reproduce it with. (But I very very need some kmail/kontact's features :-) )

I provided some additional info like console output below.



Reproducible: Always

Steps to Reproduce:
Perform a manual re-check of an imap account 'inbox' folder (right click and "Check mail in this folder")

Actual Results:  
Message list cuts out a lot of messages

Expected Results:  
Correctly display all messages in the folder

This one I can't figure out or at least don't know any temporary workaround :)

The problem never arises if the account is set up as POP3 and the mail is fetched.

At the second rescan moment, Konsole says this:
Application asked to unregister timer 0x5d000014 which is not registered in this thread. Fix application.
kmail(25576) KMail::MessageListView::StorageModel::releaseMessage: Trying to release a message at row 94 that no longer exists in the folder 

And, well, it happens every time. Recreating the account sometimes makes it go for a short while, but after several re-checks, it starts again.

Hm, what else do I know up till now...
If a new message is received, the index is rebuilt correctly. 
After a manual re-check, the list breaks again.

System: Debian 6.0 stable, KDE 4.6.2 from "Experimental" repository.
Comment 1 Alexander Bezrukov 2011-04-30 21:28:28 UTC
And, oh, yes, different messages are cut out every time
Comment 2 Torgny Nyblom 2011-05-13 19:25:37 UTC
KMail 1 is more or less abandoned except in the enterprice (kolab) branch.
KMail 2 will be released for real soon and that uses a completely different IMAP backend so closing as wontfix as the probability that someone fixes this in KMail 1 is as close to 0 as it can be.

If you really need KMail 1 and have this fixed please use the enterprise version from the Kolab group and if the bug is present there file a bug with them.
Comment 3 Christophe Marin 2011-12-08 12:25:30 UTC
using the correct resolution. KMail1 is unmaintained