Bug 313401 - attachments not detected - no icon in message list
Summary: attachments not detected - no icon in message list
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 4.12 pre
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-17 11:04 UTC by Martin Koller
Modified: 2015-01-31 14:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.6


Attachments
sample mail which shows problem (1.58 MB, application/octet-stream)
2013-11-27 11:35 UTC, Martin Koller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2013-01-17 11:04:59 UTC
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
Comment 1 Martin Koller 2013-11-27 11:34:09 UTC
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.
Comment 2 Martin Koller 2013-11-27 11:35:13 UTC
Created attachment 83789 [details]
sample mail which shows problem
Comment 3 David Korth 2014-02-19 03:16:23 UTC
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.
Comment 4 David Korth 2014-02-19 06:01:52 UTC
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.
Comment 5 Martin Koller 2015-01-31 14:50:45 UTC
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