Bug 312847 - Nepomuk Feeder does not recognise removal of the important flag
Summary: Nepomuk Feeder does not recognise removal of the important flag
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Nepomuk Feeder Agents (show other bugs)
Version: 4.10
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-07 22:01 UTC by Jan Gerrit Marker
Modified: 2015-03-17 12:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Gerrit Marker 2013-01-07 22:01:43 UTC
Every time the "Important" flag of an email is removed nepomuk does not remove the association between the email and the "Important" tag from its database.

Reproducible: Always

Steps to Reproduce:
1. Mark a message as important
2. Remove the important flag again
Actual Results:  
Open akonadiconsole, search for the email and have a look at the "Nepomuk" tab: 
"Important" is still checked although the \FLAGGED flag ("Internals" tab) is not set anymore.

Expected Results:  
"Important" should not be a tag of the email anymore.

I had a look at the code:
For every update of an email the nepomuk feeder agent creates a new graph which is merged into the old already saved graph of the same email. The newly created graph correctly does not contain the association with the tag but the old graph does, of course. Nepomuk2::storeRessources() is used to push and merge the new graph into the old one but that function does not remove the tag association because from its point of view the association should not be deleted because only new information of the new graph should be added to the old graph.
At least that's what I understood.
I am not sure how to fix this therefore I wrote this bug report.
Comment 1 Jan Gerrit Marker 2013-01-07 22:13:20 UTC
I forgot to add that this does happen when using the "todo" flag, too. It does not happen when using a nepomuk tag like "School" which is not specially used by KMail.
Comment 2 Laurent Montel 2013-01-08 09:00:08 UTC
I confirm there is a problem.
When I set "important" tag is not set.
Comment 3 Vishesh Handa 2015-03-17 12:39:41 UTC
The Nepomuk project is no longer maintained in KDE since 4.13. For email indexing, Baloo provided an Akonadi resource to index emails, contacts and events. Tags are now maintained by Akonadi itself.