GNOME Bugzilla – Bug 530245
Search: Label criterion does not work
Last modified: 2008-05-05 13:15:26 UTC
I got a Saved Search, that basically displays all mail which is either unread or got any Label assigned. This search has been created with Evo 2.6. Applying Labels, and then using this Saved Search does NOT work. The Search indeed displays those messages with Labels, where the Labels have been assigned with an OLD version of Evo, like 2.6. It does NOT, however, display any message with a Label applied using this very version of Evo. Note that an important difference between the above mentioned versions of Evo is, that the latter stores Labels on the IMAP server, while 2.6 solely used its own index files. Evolution 2.22.0, IMAP server is dovecot 1.0.x
Priority High, Severity critical. There is something seriously broken.
Apparently, the Labels have NOT been migrated automatically. This is, how they used to be until just recently: $ gconftool-2 --get /apps/evolution/mail/labels [_Fade Out:#a0a0a0,_Work:#ff8c00,_Personal:#008b00,_To Do:#0000ff,_Later:#8b008b] They finally have been migrated to the new style, when I manually edited a Label. Newlines inserted for readability. $ gconftool-2 --get /apps/evolution/mail/labels [_Fade Out:#a0a0a0|$Labelimportant,_Work:#ff8c00|$Labelwork, _Personal:#008b00|$Labelpersonal,_To Do:#0000ff|$Labeltodo, _Retal:#8b8b00008b8b|$Labellater] However, even after migrating the Labels, nothing changed with respect to this bug. The search still dos not work.
The Search I first noticed this and have been using for testing this issue: <?xml version="1.0"?> <filteroptions> <ruleset> <rule grouping="any" source="incoming"> <title>ftp-release</title> <partset> <part name="status"> <value name="match-type" type="option" value="is not"/> <value name="flag" type="option" value="Seen"/> </part> <part name="label"> <value name="label-type" type="option" value="is"/> <value name="versus" type="label" value="important"/> </part> <part name="label"> <value name="label-type" type="option" value="is"/> <value name="versus" type="label" value="work"/> </part> <part name="label"> <value name="label-type" type="option" value="is"/> <value name="versus" type="label" value="personal"/> </part> <part name="label"> <value name="label-type" type="option" value="is"/> <value name="versus" type="label" value="todo"/> </part> <part name="status"> <value name="match-type" type="option" value="is"/> <value name="flag" type="option" value="Flagged"/> </part> </partset> </rule> </ruleset> </filteroptions>
Created attachment 110061 [details] [review] proposed evo patch for evolution; Let searches work with labels again. I'm sorry with confusion about migration code, there was actually none required, my fault I mentioned it on IRC.
Commit to stable/trunk
Committed to trunk. Committed revision 35456. Committed to gnome-2-22. Committed revision 35457.
Confirming FIXED. The Search now correctly displays all mail with Labels, set by either an old Evolution version as well as the current one. Thanks, Milan. :)