[Bug 883459] Re: KMail duplicates emails

Bug Watch Updater 883459 at bugs.launchpad.net
Mon Jun 25 21:59:30 UTC 2012


Launchpad has imported 23 comments from the remote bug at
https://bugs.kde.org/show_bug.cgi?id=283682.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-10-10T05:57:53+00:00 Maednoldor wrote:

Version:           4.7 (using Devel) 
OS:                Linux

I have a Jira account. I have set up 2 filters: one is used to move messages for JIRA folder and mark it as read. Filtered by sender (my own activieties).
The second one is used to move all other JIRA maessages to the same folder, but do not mark them as read.

As a result, I have a lot of duplicated messages in my JIRA folder. Some
messages (during 2-3 weeks) became duplicated to 10 times.

Reproducible: Sometimes

Steps to Reproduce:
1. create some filters, as I mentioned.
2. try to get the mail.

Actual Results:  
New messages arrive in the INBOX folder (that are already placed to the JIRA folder). After this, KMail starts to filter them and send the duplicates to JIRA folder again.

Expected Results:  
Messages should be placed to the folder. No duplicating.

As I remember, one of e-mail clients, used by mine, has a function
'remove duplicates'. This should be very useful in this case.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/0

------------------------------------------------------------------------
On 2011-10-30T20:58:38+00:00 Vladimir Kolesnikov wrote:

Could be the same bug:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/883459

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/10

------------------------------------------------------------------------
On 2011-11-08T07:35:21+00:00 Montel-3 wrote:

*** Bug 286053 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/13

------------------------------------------------------------------------
On 2011-12-01T10:53:49+00:00 Geoff-v8x wrote:

I have the same problem, nearly all messages in my inbox are duplicated.
I use only IMAP so don't know if this affects pop3 accounts. I do have
filtering enabled.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/14

------------------------------------------------------------------------
On 2011-12-09T02:49:45+00:00 Rick Vernam wrote:

Running Gentoo stable, just pulled in kmail2.  my pop account is showing multiple copies of messages that have been moved to another folder by a filter rule.  Also, when I click on the Inbox messages that had been moved by filter suddenly appear in the inbox, then are moved back into the the folder specified by the filter rule (and thus the duplicate).
Also checking email will cause the filtered messages to duplicate.
This is not happening with my IMAP accounts (though none of my filters affect messages that typically come in through the accounts I access via IMAP).

Happy hunting.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/15

------------------------------------------------------------------------
On 2011-12-09T03:55:45+00:00 Rick Vernam wrote:

I exported all my filters, and deleted them from KMail2.  KMail2 is now
running without filters.  If I move an email from the inbox to another
folder (ie, the "destination" folder), the email will appear again in
the inbox (and remain in the destination folder as well).  This occurs
both when the destination folder is a sub-folder of the inbox, and when
the destination folder is directly under the Local Folders.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/16

------------------------------------------------------------------------
On 2011-12-27T15:34:23+00:00 Pragma-n wrote:

I experience this problem in 4.7.90 (4.8 beta2).

If a mail just downloaded is moved by a filter to a different folder
then there is a good chance that it will re-appear again in the original
folder at the next update

It does not happen with all the accounts or all the filtered messages.
However if a message is affected then it's 100% reproduceable: it will
be duplicated at every folder update (forever?).

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/17

------------------------------------------------------------------------
On 2012-01-26T07:47:06+00:00 Ggrau wrote:

Same here... with 4.7.4 on Fedora16
Most mails I try to move from my Inbox will appear again as duplicate.
This happens also, when moved by filter rule.
Pressing <Del> to move them into trash surprisingly seems to work.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/18

------------------------------------------------------------------------
On 2012-01-31T10:35:48+00:00 Matthias-nagel-3 wrote:

Same problem for me. I am using kmail 4.7.4-r1 from the Gentoo Stable
amd64 repository. I have to POP3 accounts and some filters that examine
the mail header (mostly the "from" attribute) and move the mails into
folders and marks them as read. Sometimes new messages are duplicated.
This also affects mails that are passed through the filter but not
modified, because the filter condition does not apply.

The mails are not duplicated immediately but reemerge after a folder
update, especially after starting kmail. Suddenly mails that are already
some days old and have already been processed by the filter show up
again.

I can observe the same behaviour as in comment #6. Not every mail that
is processed by some filter is affected, but if some mail is affected
once, the mail reappears over and over again. I have the feeling that a
mail is more likely to be affected if the filter has to process a lot of
new mails at once.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/19

------------------------------------------------------------------------
On 2012-02-11T23:38:19+00:00 Tokoe wrote:

Hej all,

can you please check whether akonadi reports some errors regarding the target folders you try to move the mails to, about a missing remote id?
You can also use akonadiconsole and check the folder properties on the 'internal' tab to find out the remote id.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/20

------------------------------------------------------------------------
On 2012-02-12T13:39:17+00:00 Matthias Mailänder wrote:

Found this while trying to reproduce and understand akonadiconsole logs:

AgentBase(akonadi_imap_resource_0): Select failed, server replied:
A000068 NO Mailbox doesn't exist: &APw-lleimer

The local Trash folder is called "Lokale Ordner/Mülleimer". This is
where the spam check wants to move spam. Putting it on the IMAP Junk
folder as Thunderbird does is not possible/allowed.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/21

------------------------------------------------------------------------
On 2012-02-12T15:59:22+00:00 Geoff-v8x wrote:

(In reply to comment #9)
> Hej all,
> 
> can you please check whether akonadi reports some errors regarding the target
> folders you try to move the mails to, about a missing remote id?
> You can also use akonadiconsole and check the folder properties on the
> 'internal' tab to find out the remote id.

Tobias,

Sorry this will sound lame but I'm not sure where to look for the
akonadi error log. I did try this:

$ grep -R remote ~/.local/share/akonadi/
grep: /home/geoff/.local/share/akonadi/socket-dhcppc2: No such file or directory
grep: /home/geoff/.local/share/akonadi/socket-dhcppc1: No such file or directory
Binary file /home/geoff/.local/share/akonadi/db_data/ibdata1 matches
Binary file /home/geoff/.local/share/akonadi/db_data/akonadi/pimitemtable.frm matches
Binary file /home/geoff/.local/share/akonadi/db_data/akonadi/collectiontable.frm matches
Binary file /home/geoff/.local/share/akonadi/db_data/ib_logfile0 matches
grep: /home/geoff/.local/share/akonadi/akonadiserver.socket: No such device or address
grep: /home/geoff/.local/share/akonadi/socket-scotty/akonadiserver.socket: No such device or address
grep: /home/geoff/.local/share/akonadi/socket-scotty/mysql.socket: No such device or address

As the only matches are in binary files I didn't take this any further.

Using akonadiconsole there is nothing at all displayed in the
browser->internals tab. I do notice that non of the remote IMAP folders
are displayed in the panel on the left hand side. I see only:

Personal Contacts
Local Folders
    |
     - Outbox
Search

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/22

------------------------------------------------------------------------
On 2012-02-12T18:54:42+00:00 Ggrau wrote:

All I can see when moving a Mail is:

==================================
NotificationManager::notify ( Item (129274, 1329071216.R951.neptun:2,S) from collection 467 movedto collection 535 )
==================================

When rescanning the derectory, I just moved it out with F5:
========================================
NotificationManager::notify ( Item (129275, 1329071216.R951.neptun:2,S) in collection 467 added )
NotificationManager::notify ( Item (129275, 1329071216.R951.neptun:2,S) in collection 467 modified parts (PLD:RFC822) )
=======================================

There is a lot of debug traffic in the upper window, but (as I can see)
nothin g suspecious.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/23

------------------------------------------------------------------------
On 2012-02-23T13:36:09+00:00 Milian Wolff wrote:

Tobias, please give us more information on what exactly we should look
at and post here.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/24

------------------------------------------------------------------------
On 2012-02-24T16:02:23+00:00 Milian Wolff wrote:

rightclick on (some) of my target folders in akonadiconsole shows that
they all have a "remote identifier" set.

I note though, that the situation has improved, I don't get as many
duplicated emails anymore as I used to before. I'll see whehter I can
reproduce it at all, maybe this is actually fixed in recent git?

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/25

------------------------------------------------------------------------
On 2012-02-24T18:46:27+00:00 Christian Trippe wrote:

*** Bug 282296 has been marked as a duplicate of this bug. ***

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/26

------------------------------------------------------------------------
On 2012-02-25T09:43:42+00:00 Geoff-v8x wrote:

(In reply to comment #9)
> Hej all,
> 
> can you please check whether akonadi reports some errors regarding the target
> folders you try to move the mails to, about a missing remote id?
> You can also use akonadiconsole and check the folder properties on the
> 'internal' tab to find out the remote id.

Tobias,

I have checked a number of times now in akonadiconsole, the debugger
does not show any error messages when the messages are duplicated.
Please note however that the duplicated messages are the ones that are
/not/ moved because they do not meet any filter criteria. The messages
that are moved by the filters are not duplicated.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/27

------------------------------------------------------------------------
On 2012-02-25T10:02:23+00:00 Matthias-nagel-3 wrote:

Opposed to comment #16 the mails that are moved are duplicated with me.

Even mails that are not moved by a filter but that are move manually
(drag and drop) are duplicated. Mails that are "moved" to the bin folder
by hitting "DEL" are duplicated, too. In all three cases the mail re-
appears in the original folder after some period of time. The problem
can be avoid by copying the mail to the destination folder and then
purge the original mail from the source folder by hitting "Shift+DEL".
This work-around also applies to the filter. If I create two filter
actions - copy mail first, then purge the original - everything is fine.

And in all three cases there is no error report in the akonadiconsole.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/28

------------------------------------------------------------------------
On 2012-02-25T16:01:29+00:00 Milian Wolff wrote:

reopening, as I also just noticed this again. The target folder has a
proper remote identifier set, yet I saw that some mails where duplicated
by the filter manager...

Tobias, any other ideas what I could look into?

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/29

------------------------------------------------------------------------
On 2012-03-30T19:59:39+00:00 Alexandre-bonneau wrote:

This nasty bugs affect 4.8.1 too.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/32

------------------------------------------------------------------------
On 2012-04-10T15:56:55+00:00 Dr-bugzilla wrote:

I believe the problem I have in 4.8.4 is the same problem: emails
passing through filters are sometimes being duplicated.

I have a cron job on my servers which send me an "hourly test email"
message which I receive on my desktop PC; these have been running for
about two years without trouble.  I have upgraded my desktop from Ubuntu
10.04 and kmail to Xubuntu 64-bit 11.10 and kmail v4.7.3 on my desktop
and I am now seeing some of these hourly emails as identical duplicates
(same ids in the headers, etc.) in their folders in kmail2.

For example, my PC was unattended for 11 hours last night and during
that time 3 of the hourly emails appear as duplicates in their folder.

The emails are fetched by kmail2 using POP3 and filed into mbox folders
by filters.  When using kmail I had it set up to remove emails from
servers; I set kmail2 to leave it on the servers (just in case I
reverted back).  On the server I can see there are no duplicates so they
were not sent as duplicates.

The rule checks the subject of the email contains "Hourly Test Email"
and the "Envelope-to" equals the email address I specified for this
sending server.  it then moves the email to the correct folder and
processing rules is then stopped.

These email checking filters are applied before "Bogofilter check",
"Spam Handling" "Classify as Spam" and "Classify as NOT spam" filters,
so they are all probably innocent.

The email was downloaded and processed by "interval email checking".

To reproduce it:
1. Set up a filter to receiving incoming email and automatically file it in a folder.
2. Send lots of emails to it.
3. Check the folder.

I just did this by manually sending 18 emails; one of them in the middle
was duplicated.

I set up a script to send an email every 5 seconds and sent 77 emails.
79 arrived; two had been duplicated.

The package I have installed is: kmail 4:4.7.4+git111222-0ubuntu0.1
"About KMail" says "KMail Version 4.7.3, Using KDE Development Platform 4.7.4 (4.7.4)"

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/33

------------------------------------------------------------------------
On 2012-04-10T18:35:19+00:00 Alexandre-bonneau wrote:

Just for information, the bug is still seen in 4.8.2.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/34

------------------------------------------------------------------------
On 2012-06-25T21:56:46+00:00 PhobosK wrote:

Affects heavily KDE/KMail 4.8.4 too...
The problem is definitely in moving messages by an applied filter. Manual filtering doesn't have it.
The affected messages are marked for deletion on the remote server (IMAP in my case), deleted from the KMail folder and then reappearing back in the same Kmail folder and in the remote folder too. So at some point in time, the remote folder has the marked for deletion messages + one fresh new and duplicate of all marked for deletion. The strange thing is that some of the duplicates have only headers and not the full messages.
So the problem seems to be in the Move action function of the filtering rules.

Reply at: https://bugs.launchpad.net/kdepim/+bug/883459/comments/35

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdepim in Ubuntu.
https://bugs.launchpad.net/bugs/883459

Title:
  KMail duplicates emails

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdepim/+bug/883459/+subscriptions




More information about the kubuntu-bugs mailing list