Bug 205045

Summary: Kontact/Kmail repeatedly deletes/refills IMAP inbox contents
Product: [openSUSE] SUSE Linux 10.1 Reporter: David Wright <david.wright>
Component: KDEAssignee: Will Stephenson <wstephenson>
Status: RESOLVED FIXED QA Contact: E-mail List <kde-maintainers>
Severity: Major    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Wright 2006-09-12 05:35:22 UTC
I updated to KDE 3.5.4 level a from the build service and have been using it for the couple of months without any problems.

About 2 weeks ago there was a build that caused Kontact to crash a couple of times a day, no biggy, I assumed it would get fixed with the next update.

But the next update (end of August) brought a new problem. When Kontact is open, it cycles through the imap inbox and deletes every mail (read or unread). When the inbox is empty, it re-instates all of the mails and then prompty starts to delete them all again. This carries on until I exit Kontact.

I am using Cyrus IMAP as the back end IMAP server, and I have been using this combination for about 18 months without any problems.

The deleting of emails takes a long time. It takes anything up to 5 seconds per email for it to be removed. With 20 emails in the inbox, it cycles through them n around 1 minute.

I removed all of my filters (to move mailing list entries to the correct sub-folders) and this still continued. I just had a brainwave and deleted the anti-spam rules (SpamAssassin) and it seems to have stopped doing it for now...
Comment 1 Christoph Thiel 2006-09-12 12:21:20 UTC
Will, do you think we can do anything about it?
Comment 2 Will Stephenson 2006-09-12 14:08:56 UTC
Sounds like the anti-spam rules were filtering all messages, not just new ones, probably caused by a mail filter loop.  David, can you post some steps to reproduce this?

The connected-imap filtering in KDE 3 has awful performance in KDE 3 and we can't change it until KDE 4, so if it turns out that David had a mail filter loop and a performance problem, I would recommend filtering on the server if possible.
Comment 3 David Wright 2006-09-12 14:50:48 UTC
Hmm, well, Spam Assassin and Kontact were working fine until recently. Then about a week, week and a half ago, I downloaded the latest updates from the KDE Build Service repo.

Next time I logged in this loop started. All that is needed is to have Kontact connected to the IMAP server, it starts automatically, as soon as Kontact has initialised.

I switched to using Evolution in the meantime, but, although it has improved lately, I still prefer Kontact, so looked at fixing it.

I removed the filters, which conincided with an update to Kontact this morning, and it is working fine now.

To reproduce, I can only suggest using the Kontact build from last week and running with the Spam Assassin deamon and Cyrus IMAP, I didn't do anything else to the configuration.

I've re-inserted my personal filters for moving mails around and it is working fine now, but I haven't re-instated Spam Assassin yet.
Comment 5 Will Stephenson 2007-01-13 15:12:40 UTC
Was this using disconnected IMAP or or online-imap accounts?  Is it still a problem?
Comment 6 David Wright 2007-01-17 10:49:53 UTC
This was using a Cyrus IMAP on a local network server. It seems to be working okay after the upgrade to 10.2, but I managed to kill my server the other day (blown motherboard/CPU), so I can't test further currently... :-(
Comment 7 Will Stephenson 2007-01-25 09:49:36 UTC
Please reopen if necessary.