I'm using kmail2 for the first time and imported all existing mails from kmail1 by specifying a local maildir folder resource. The mails are shown but even mails which have an attachment do not get the attachment icon in the messagelist. Therefore also when filtering the messagelist with the right-top combobox to show only mails which "Has Attachment" does not work and no mail is shown. I also tried to stop all PIM apps, stopped akonadi (akonadictl stop), removed ~/.config/akonadi and ~/.local/share/akonadi and restarted kmail, reconfigured the maildir resource but still the same problem The system is openSuse 12.2, 64bit Reproducible: Always
I'm now at KDE 4.12 RC (4.11.95) and I still see this problem, even with newly downloaded mails (from my POP server). I'll attach such a mail here. What I also see with that mail is that although it has only 1 attachment (a PDF file), kmail2 shows it has TWO attachments. The first one is named "Mail message body" ... this should not be displayed as attachment.
Created attachment 83789 [details] sample mail which shows problem
I've encountered this bug as well. It seems Akonadi doesn't properly index the attachment attribute when importing a Maildir. (I haven't seen the two attachments issue, though.) Newly-received emails that have attachments do get the attachment icon. Using KMail 4.12.2 with akonadi-server-1.11.0.
Addendum: This is also happening with signed email. I'm thinking the "Synchronize folder" function needs to be updated to also scan for attachments/signatures/etc.
Git commit 0cb0e2f5efc7d76033f9b9ccc83aeebe9845f338 by Martin Koller. Committed on 31/01/2015 at 14:44. Pushed by mkoller into branch 'KDE/4.14'. Fix missing mail flags; avoid code duplication This patch uses the new method Akonadi::MessageFlags::copyMessageFlags() to copy the mail message flags into Akonadi objects, avoiding code duplication. Some places did not do this previously leading to mail flags never appearing (or getting lost) in Akonadi Related: bug 286692, bug 327241, bug 342756 FIXED-IN: 4.14.6 REVIEW: 122224 M +1 -1 CMakeLists.txt M +1 -13 resources/imap/messagehelper.cpp M +3 -0 resources/maildir/maildirresource.cpp M +2 -0 resources/maildir/retrieveitemsjob.cpp M +6 -0 resources/mbox/mboxresource.cpp M +3 -0 resources/mixedmaildir/mixedmaildirstore.cpp M +2 -9 resources/pop3/pop3resource.cpp http://commits.kde.org/kdepim-runtime/0cb0e2f5efc7d76033f9b9ccc83aeebe9845f338