[evolution-data-server] Let the message-location check also real message location in the search folders
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Let the message-location check also real message location in the search folders
- Date: Fri, 2 Aug 2019 10:37:45 +0000 (UTC)
commit 6989cd719226a6d3d68a63612d4f318fabd3eba0
Author: Milan Crha <mcrha redhat com>
Date: Fri Aug 2 12:34:49 2019 +0200
Let the message-location check also real message location in the search folders
This helps to filter on message location in search folders, which
have other search folders as source folders, by referencing the real
folder of the respective message.
Related to https://gitlab.gnome.org/GNOME/evolution/issues/548
src/camel/camel-folder-search.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/src/camel/camel-folder-search.c b/src/camel/camel-folder-search.c
index e240caa2b..3dee2ac7b 100644
--- a/src/camel/camel-folder-search.c
+++ b/src/camel/camel-folder-search.c
@@ -1697,6 +1697,24 @@ folder_search_message_location (CamelSExp *sexp,
same = g_str_equal (uri, argv[0]->value.string);
g_free (uri);
+
+ if (!same && search->priv->current &&
+ CAMEL_IS_VEE_FOLDER (search->priv->folder)) {
+ CamelFolder *folder;
+
+ folder = camel_vee_folder_get_location (CAMEL_VEE_FOLDER
(search->priv->folder),
+ (CamelVeeMessageInfo *) search->priv->current, NULL);
+
+ if (folder) {
+ store = camel_folder_get_parent_store (folder);
+ name = camel_folder_get_full_name (folder);
+ uri = mail_folder_uri_build (store, name);
+
+ same = g_str_equal (uri, argv[0]->value.string);
+
+ g_free (uri);
+ }
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]