Bug 305073 - Filtering often duplicates messages
Summary: Filtering often duplicates messages
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: 4.9
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 10:44 UTC by Anders Lund
Modified: 2012-11-18 08:23 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.9.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Lund 2012-08-13 10:44:25 UTC
My setup: pop3 account, maildir resource. Filters move messages from mailing lists into folders, mostly based on the List-Id header.

Messages from lists are sometimes, but not always duplicated in the destination folders. Duplications is no longer infinitely repeated, but it is still very annoying.

The folder->remove duplicates action finds and removes these duplicates.

Reproducible: Sometimes
Comment 1 Anders Lund 2012-09-27 10:00:44 UTC
Hvaing observed this highly annoying misbehavior for some time now, I can say that the copying happens when I enter my inbox. The copied messages are from the last batch, not all messages are copied. Spam messages are sometimes copied to the inbox. Message copies have to be remved by using the "remove duplicate messages" action, or by deleting them manually, or (in case of spam) hitting CTRL + J. Updating folders (or restarting kmail) does not cause removal.

Worsening the problem is the fact that the copied messages are unread, so I have after visiting my inbox a false unread mails count in some folders.

The problem only happens once for each batch of fetched mails.
Comment 2 András Manţia 2012-10-13 17:43:39 UTC
Please also test with akonadi 1.8.1 (or master from source), that will be released tomorrow.
Comment 3 Anders Lund 2012-10-13 17:52:17 UTC
I do not have this particular problem with IMAP, but I can try fetching some mail using  pop3 after I get an akonadi update (usually quite fast on arch linux)
Comment 4 András Manţia 2012-10-18 20:54:00 UTC
Git commit 37515fa641381b1357f26b0372f69bf9300dc10f by Andras Mantia.
Committed on 18/10/2012 at 22:53.
Pushed by amantia into branch 'KDE/4.9'.

Backport of the filter pipeline refactoring fix, that should fix the duplication of mails when it goes through several filter that move and modify the mail.
Related: bug 283682
FIXED-IN: 4.9.3

M  +29   -41   mailfilteragent/filtermanager.cpp

http://commits.kde.org/kdepim/37515fa641381b1357f26b0372f69bf9300dc10f
Comment 5 Anders Lund 2012-10-22 15:25:42 UTC
A certain thread on the marble list have made akonadi go wild today, creating infinite copies os some messages untill I put kmail offline and removes the messages through another interface. The thread is titled

Re: [Marble-devel] Review Request: add application/x-gpx+xml, application/x-osm+xml, application/x-esri-shape to the mime-type database
Comment 6 Anders Lund 2012-10-22 15:32:40 UTC
Mandag den 22. oktober 2012 15:25:42 skrev du:
> https://bugs.kde.org/show_bug.cgi?id=305073
> 
> --- Comment #5 from Anders Lund <anders@alweb.dk> ---
> A certain thread on the marble list have made akonadi go wild today,
> creating infinite copies os some messages untill I put kmail offline and
> removes the messages through another interface. The thread is titled
> 
> Re: [Marble-devel] Review Request: add application/x-gpx+xml,
> application/x-osm+xml, application/x-esri-shape to the mime-type database

forgot to add that this is a IMAP account.
Comment 7 Dirk Heinrichs 2012-11-18 08:23:13 UTC
Just wanted to report this bug, because I still see this behaviour in kmail/akonadi as of KDE 4.9.3. This is an IMAP account and I only use the spam filtering functionality of kmail, everything else is filtered via sieve.

However, all mails which are automatically detected as spam (bogofilter) are moved to a junk folder on the IMAP server by kmails spam filters and arrive there twice. All the mails that I personally mark as spam are also moved, but those appear there only once.

So I guess it's not quite fixed in 4.9.3.