After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 530245 - Search: Label criterion does not work
Search: Label criterion does not work
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.22.x (obsolete)
Other Linux
: High critical
: ---
Assigned To: Milan Crha
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2008-04-27 20:07 UTC by Karsten Bräckelmann
Modified: 2008-05-05 13:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed evo patch (1.10 KB, patch)
2008-04-28 19:33 UTC, Milan Crha
committed Details | Review

Description Karsten Bräckelmann 2008-04-27 20:07:17 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
Comment 1 Karsten Bräckelmann 2008-04-27 20:08:15 UTC
Priority High, Severity critical.  There is something seriously broken.
Comment 2 Karsten Bräckelmann 2008-04-28 16:09:16 UTC
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.
Comment 3 Karsten Bräckelmann 2008-04-28 16:11:09 UTC
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>
Comment 4 Milan Crha 2008-04-28 19:33:02 UTC
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.
Comment 5 Srinivasa Ragavan 2008-04-30 03:47:24 UTC
Commit to stable/trunk
Comment 6 Milan Crha 2008-04-30 10:00:12 UTC
Committed to trunk. Committed revision 35456.
Committed to gnome-2-22. Committed revision 35457.
Comment 7 Karsten Bräckelmann 2008-05-05 13:15:26 UTC
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. :)