Bug 265653 - Error after filter moves message to different folder
Summary: Error after filter moves message to different folder
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail2
Classification: Applications
Component: filtering (show other bugs)
Version: 2.0.89
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-06 23:32 UTC by Jure Repinc
Modified: 2013-07-22 12:19 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of error messages from KMail (20.20 KB, image/png)
2012-05-24 06:04 UTC, Alexey Neyman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2011-02-06 23:32:45 UTC
Version:           SVN trunk (KDE 4) (using KDE 4.6.0) 
OS:                Linux

I have a POP3 account setup and a couple of filters KMail filters for mailing lists which move the messages to a specific subfolder in Inbox. When I recheck for mail at first it appears that all is OK. Message appears to be moved to correct subfolder, then a few minutes (!) long process of Synchronising collection inbox starts. after this proces completes a notification message popes out from KDE notification system telling something like this for each message that was moved:
Local Folders: Could not move message ''.

After this and despite the notification the messages appear to be moved just fine into their destionation folders.

If I read the new messages during the long synchronising collection proces then after it is finished the duplicated emails reappear in the destination folders as unread.

I'm using Akonadi server and KMail/KDEPIm from Git, pulled on 2011-02-04. I have Akonadi setup to use existing MySQL server that I have already running.

Reproducible: Always

Steps to Reproduce:
1. Setup a POP3 account
2. Set up some filters which move messages to different folder
3. Check mail so that filters take effect

Actual Results:  
You get notification about not being able to move the messages

Expected Results:  
Messages should be moved without errors
Comment 1 Laurent Montel 2011-07-06 21:56:35 UTC
work fine now.
Reopen if necessary.
Comment 2 Thomas Zell 2011-11-07 18:48:57 UTC
I'm still seeing this occasionally with KMail 4.7.3.
However, the mails do not appear in the destination folder at all until the reappear only quite a while later. In between there seems to be some synchronization activity going on (CPU and disk usage goes up).
Comment 3 Alexey Neyman 2012-05-24 06:04:18 UTC
Seeing this error in KDE 4.8.3 (Kubuntu Precise) and saw it since 4.8.0. Please reopen this bug.
Comment 4 Alexey Neyman 2012-05-24 06:04:58 UTC
Created attachment 71337 [details]
Screenshot of error messages from KMail
Comment 5 Mark Fraser 2013-07-16 06:36:12 UTC
Still seeing this with KDE 4.10.5. When I start KMail, I'm getting 10 or so errors saying "Can't move message ...."
Comment 6 Andre Woebbeking 2013-07-16 10:51:28 UTC
I get this for (only) one mail:

Local Folders: Could not move message '1373925889.R420.sol' from '~/.local/share/local-mail/inbox' to '~/.local/share/local-mail/.Lists.directory/.kde-commits.directory/other'.

If I filter the message manually it disappears in inbox and after pressing F5 or waiting a moment it reappears as unread again. But the mail seems to be copied at least. I already have several duplicates in the destination folder.

I switched to 4.11 branch a few days ago.

I had this also in older versions.
Comment 7 Stephan Olbrich 2013-07-21 19:27:58 UTC
Please reopen this bug, I get this error message (with different message id) almost every time I get mails via pop3 which are filtered. Additionally every time I open the Inbox of my "Lokale Ordner" the message pop up.

Lokale Ordner: Die Nachricht „1373909052.R221.chaos-desktop“ kann nicht verschoben werden.

I have this problem for several versions now.
Recently I deleted all akonadi and kmail related stuff, set up everything and reimported my maildir archive but the error is still there.
Comment 8 Stephan Olbrich 2013-07-22 12:19:52 UTC
I checked the mail which currently fails to move:

$ find .local-mail.directory -name 1373909052.R221.chaos-desktop.local-mail.directory/.OSM.directory/talk/new/1373909052.R221.chaos-desktop
.local-mail.directory/Posteingang/new/1373909052.R221.chaos-desktop

Comparing the to files shows, that those are different mails!
My (limited) understanding of maildir is, that the same name should never occur twice in the same maildir tree. Is there something wrong with the naming of mails in akonadi?