Bug 337665 - The new GMAIL resources does not change the email from unread to read
Summary: The new GMAIL resources does not change the email from unread to read
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Gmail resource (show other bugs)
Version: GIT (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-21 14:02 UTC by Raymond Wooninck
Modified: 2014-07-24 09:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Wooninck 2014-07-21 14:02:55 UTC
I managed to set up the GMail resource to work with my gmail account. I had to cleanup on both sides, but now it seems to work. However I noticed a strange behavior when reading emails.

When an email is read, the unread count in the folder overview is reduced and shows the correct number of unread emails remaining. However in the message view, the email remains blue and the envelope before the email itself is not opened. 

Closing kmail and opening it again, shows the correct view with the read emails correctly marked by black text and an opened envelope. Switching from one folder to the next however doesn't help.
Comment 1 Raymond Wooninck 2014-07-21 14:03:45 UTC
I also checked through the webgui of gmail itself and it seems that the emails are correctly being marked as read. So it is purely a refresh issue of the gmail resource
Comment 2 Daniel Vrátil 2014-07-24 09:42:42 UTC
Git commit 8fb4b39d6cdebfea80326e931198126c0421fc3d by Dan Vrátil.
Committed on 24/07/2014 at 09:30.
Pushed by dvratil into branch 'KDE/4.14'.

ETM: Don't ignore itemChanged of items in virtual collections

It can happen that storage collection of an item is not in the ETM, but
only virtual collections containing items from that collection (see Gmail
resource for example). In that case ETM will only receive itemChanged
notifications for the virtual collections, but not for the storage one,
so the item won't be updated, because ETM does not update the original
item when the notification is detined for a virtual collection.

This change makes ETM not to ignore itemChange notifications when the
collection is virtual, but perserves the orignal parent collection.
Approved-By: Christian Mollekopf

M  +9    -2    akonadi/entitytreemodel_p.cpp

http://commits.kde.org/kdepimlibs/8fb4b39d6cdebfea80326e931198126c0421fc3d