[evolution] I#1067 - The "No label" filter shows emails with labels



commit 750f1ad607c7bb664d51459192332f750499abf1
Author: Milan Crha <mcrha redhat com>
Date:   Tue Sep 1 11:29:48 2020 +0200

    I#1067 - The "No label" filter shows emails with labels
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1067

 src/modules/mail/e-mail-shell-view.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/modules/mail/e-mail-shell-view.c b/src/modules/mail/e-mail-shell-view.c
index 263969240a..1c2c3155f6 100644
--- a/src/modules/mail/e-mail-shell-view.c
+++ b/src/modules/mail/e-mail-shell-view.c
@@ -798,10 +798,10 @@ filter:
                case MAIL_FILTER_NO_LABEL:
                        string = g_string_sized_new (1024);
                        if (query && *query)
-                               g_string_append_printf (string, "(and %s (and ", query);
+                               g_string_append_printf (string, "(and %s (match-all ", query);
                        else
-                               g_string_append (string, "(and ");
-                       g_string_append (string, "(match-all ");
+                               g_string_append (string, "(match-all ");
+                       g_string_append (string, "(and ");
                        valid = gtk_tree_model_get_iter_first (
                                GTK_TREE_MODEL (label_store), &tree_iter);
                        while (valid) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]