Summary: | Filtering in IMAP can duplicate emails | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Iñaki Baz Castillo <ibc> |
Component: | IMAP | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | bss, gustavo.boiko, joerg, warcomp |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Iñaki Baz Castillo
2005-12-29 00:44:18 UTC
Please check KMail 1.9.1 (in KDE 3.5.1) when it's out. There have been some adjustments in the IMAP filtering code which may have corrected this problem too. OK, I'll wait until KDE 3.5.1 is available for Debian (Alioth sources). I've seen this running kmail 1.9.1 ( KDE 3.5.0-4.2.fc3.kde as packaged by kde-redhat.sourceforge.net). Well, I've tried it and couldn't reproduce. Perhaps my machine and / or the network connection to the IMAP server is faster. I was not able to get duplicates of the messages. Do you perhaps have a longer list of filters which are applied to incoming messages from the IMAP account? I've now tried with just ONE filter for my IMAP account. This filter just marks as important the incomming messages from "userA@domain.com", nothing else. I send an email from that account to my IMAP account so the email appears, but if I receive again the mail, there appears a duplicate mail. And if I receive again my mail another duplicate mail appears. Exactly the same email. The only difference is the following: root@machine /var/spool/cyrus/mail/m/user/myuser $ ls -l total 32K -rw-r----- 1 cyrus mail 734 2006-01-17 22:20 1131. -rw-r----- 1 cyrus mail 727 2006-01-17 22:29 1140. -rw-r----- 1 cyrus mail 727 2006-01-17 22:29 1141. -rw-r----- 1 cyrus mail 727 2006-01-17 22:29 1142. -rw-r----- 1 cyrus mail 2,3K 2006-01-17 22:29 cyrus.cache -rw-r----- 1 cyrus mail 149 2005-12-28 19:38 cyrus.header -rw-r----- 1 cyrus mail 284 2006-01-17 22:29 cyrus.index 1131. is a previous email that doesn't match any filter. The bug doesn't occur with this mail. 1140. is the first email that matches the filter rule. 1141. is the first duplicate mail generated when receiving again the mail. 1142. is the second duplicate mail. root@machine /var/spool/cyrus/mail/m/user/myuser $ diff 1140. 1141. 20c20 < X-UID: 1136 --- > X-UID: 1137 I do "tail -f /var/log/mail.log" but nothing occur when receiving again the mail and the duplicates messages appear. The same in "mail.err", "mail.log" and "syslog". My IMAP server is in MY COMPUTER, and I receive the mail in THE SAME computer, so it should be faster than any network. ;) My computer is an AMD 2200 Mhz with 757MB RAM. I think it's enough. The following is about the same bug, but I can't understand: - I have my IMAP box empty. - I press "Receive" and a mail from "userA@domain.com" appear in Kmail. And the cyrus maildir shows this: -rw-r----- 1 cyrus mail 702 2006-01-17 22:52 1246. <-- This is the email. -rw-r----- 1 cyrus mail 1,2K 2006-01-17 22:52 cyrus.cache -rw-r----- 1 cyrus mail 149 2005-12-28 19:38 cyrus.header -rw-r----- 1 cyrus mail 180 2006-01-17 22:52 cyrus.index - I receive again the mail and see the original email duplicated in Kmail. But in my cyrus maildir I see the following: -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1247. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1248. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1249. -rw-r----- 1 cyrus mail 2,3K 2006-01-17 22:53 cyrus.cache -rw-r----- 1 cyrus mail 149 2005-12-28 19:38 cyrus.header -rw-r----- 1 cyrus mail 284 2006-01-17 22:53 cyrus.index In Kmail I see just 2 email, but the cyrus maildir shows 3, and the original "1246." has dissapeared, look at the "22:53" of the new 3 emails. - I receive again the mail, I see 3 times the email in Kmail, but... -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1247. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1248. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1249. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1250. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1251. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1252. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1253. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1254. -rw-r----- 1 cyrus mail 730 2006-01-17 22:53 1255. -rw-r----- 1 cyrus mail 5,8K 2006-01-17 22:53 cyrus.cache -rw-r----- 1 cyrus mail 149 2005-12-28 19:38 cyrus.header -rw-r----- 1 cyrus mail 596 2006-01-17 22:53 cyrus.index ¿?¿?¿?¿?¿?¿ - Each time I receive my email, Kmail shows one more message but cyrus maildir shows a lot of them, more and more. - Now I close Kmail and reopen. I see exactly the same number of emails in my IMAP account, and the same (a lot of them) in cyrus maildir. - Bur now if I receive again the mail the bug doesn't occur. - But if I send another email that mathes the filter to my IMAP account, the same problem occurs but just with the new mail. Maybe this is not because reopening Kmail, maybe after some time this problem dissapears, I'm not sure, sorry. *** Bug 120726 has been marked as a duplicate of this bug. *** *** This bug has been confirmed by popular vote. *** I think this bug doesn't occur more since Kmail 1.9.1 in KDE 3.5.2, but I'm not sure at all. I have the same problem with Kmail 1.9.1 and KDE 3.5.2 an Exchange Server as IMAP and Spamassasin to filter spam mails. I can confirm this same problem when talking to an Exchange server with duplicate emails, even though I do not have any filters in place. I am running KDE 3.5.2 on Solaris. I can confirm this on Kontact 1.2, Kmail 1.9.1, KDE 3.5.2 on Kubuntu (Dapper). Talking with an Exchange server via IMAP...everything was working perfectly until I ran through the Anti-Spam Wizard, which set up filters for Bogofilter. Afterward it looked like the latest new message would get duplicated everytime Kmail checked the IMAP server. So, over the course of a half hour I was getting quite a few dupes. Removing the filters fixed the problem, but it would be nice to not have to. This is still happening on KMail 1.9.3 Same here with KMail 1.9.6. After disabling all the filters within KMail the problem doesn't occur. I don't have an Exchange server, just a simple IMAP server Same here with version 1.9.6. Problem occurs with different mailservers (Courier and hmailserver (Windows) ) *** This bug has been marked as a duplicate of 95064 *** I think I just had the same problem with kmail 1.9.6. I had checkinterval to 1 minute. I got on average 20 dupes for each mail (spam or not) |