Summary: | Kmail reports the wrong number of messages in IMAP folders | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | mhirsch |
Component: | IMAP | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | gassauer |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
mhirsch
2003-10-21 21:11:07 UTC
I have discovered that if I right click the folder and select Compact, the problem goes away on that folder. Until I move the mail. I compacted a folder and the problem was gone. Then I selected all email in a folder (38 messages) and dragged them all to another folder. Then I pressed the "Chekc mail in" button. When mail was checked, the now empty folder says it has 38 messages in it. Compacting again makes it go away. So apparently dragging mail from one folder to another does not update something correctly. Whether it is in the client or the server I don't know. Another data point: When I do the same thing in Outlook (select all messages in a folder, then drag them to a different folder) kmail correctly detects that the folder is empty. Not an entirely fair comparison, since outlook, running under crossover office, uses MAPI, not IMAP, but interesting. *** Bug 66952 has been marked as a duplicate of this bug. *** I can confirm this bug, it is still present in KMail 1.5.93 (2003-11-03). The problem is that KMail counts messages that are marked as deleted. Here is how i can reproduce it: 1. I send 3 or more testmail to my imap-inbox. 2. I click on unread message 1, hold shift, then click unread message 3. This marks message 1 to 3, leaving the "unread" tag for message 2 since i never clicked it. 3. delete my 3 marked messages 4. change to a different folder than inbox 5. click on "look for email" button The result: The folder pane shows 1 unread message for inbox. When i open the inbox no unread message is in there. The reason: KMail did not really delete the three messages, but only marked them as deleted. This is a nice feature of the imap protocol and no error at all. But when KMail counts unread messages for a folder, it counts deleted messages, too. The one unread message disappears as soon as i compact my inbox. In addition if i configure KMail to expunge all deleted messages immediately, this bug does not occur. Hope my explanation is helpful to someone who can fix this :-) Bye, Thomas Kmail simply shows the unread count that is reported by the server so if this number is wrong it's a server bug. The total number is calculated by kmail and this number decreases if you delete a mail. That's why these two numbers may be different if you do not select to expunge automatically (account settings). The only thing we could do to get the numbers in sync is to fully support messages that are marked as deleted (actually show them). There is already a wish for this so I tend to close this report. OK? if you consider this not beeing a real bug, then kmail at least should be consistent and _always_ show the wrong number of unread messages. currently i can see the wrong unread count when my inbox is not selected, but as soon as i click my inbox kmail re-reads messages and the wrong unread-count disappears. in addition as long as we cannot easily get rid of this annoyance i would suggest a little warning message when the "automatically expunge messages" option is beeing disabled by the user. something like "warning: kmail does not fully support marked-as-deleted messages on imap folders. if you disable this option you might get confusing unread-message counts." on the other hand i will vote for the wish you mentioned (fully support mark as delete) :-) thomas I suspect that this is more of a MSExchange bug. If I use Mail::IMAPClient (perl module) to mark messages as deleted on mu MSExchange, the don't show up in kmail, but they _do_ show up in outlook. They also show up in the web interface to MSExchange. I suspect that MS as incorrectly implemented the mark as deleted feature. If I expunge the folder they go completely away. So a workaround is to offer an expunge when deleting option. I assume this would slow things down a bit, but it does solve the problem. Subject: RE: Kmail reports the wrong number of messages in IMAP folders Do not use MS exchange but SuSE Openexchange -- Best Regards Ferdinand Gassauer > -----Original Message----- > From: owner@bugs.kde.org [mailto:owner@bugs.kde.org] On > Behalf Of mhirsch@nubridges.com > Sent: Monday, December 08, 2003 3:16 PM > To: gassauer@kde.org > Subject: [Bug 66354] Kmail reports the wrong number of > messages in IMAP folders > > > ------- You are receiving this mail because: ------- > You are on the CC list for the bug, or are watching someone who is. > http://bugs.kde.org/show_bug.cgi?id=66354 ------- Additional Comments From mhirsch@nubridges.com 2003-12-08 15:15 ------- I suspect that this is more of a MSExchange bug. If I use Mail::IMAPClient (perl module) to mark messages as deleted on mu MSExchange, the don't show up in kmail, but they _do_ show up in outlook. They also show up in the web interface to MSExchange. I suspect that MS as incorrectly implemented the mark as deleted feature. If I expunge the folder they go completely away. So a workaround is to offer an expunge when deleting option. I assume this would slow things down a bit, but it does solve the problem. |