[evolution-mapi] Bug 590242 – apply filter automatically to new message doesn't work.
- From: Johnny Jacob <jjohnny src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug 590242 – apply filter automatically to new message doesn't work.
- Date: Thu, 6 Aug 2009 05:48:50 +0000 (UTC)
commit e5594bb6be6ab4e5171ab43dfa18a9e39c49ee9e
Author: Johnny Jacob <jjohnny novell com>
Date: Thu Aug 6 02:17:57 2009 +0530
Bug 590242 â?? apply filter automatically to new message doesn't work.
src/camel/ChangeLog | 7 +++++++
src/camel/camel-mapi-folder.c | 6 ++----
src/camel/camel-mapi-store.c | 5 +++++
3 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/src/camel/ChangeLog b/src/camel/ChangeLog
index 3e0ca7b..062b482 100644
--- a/src/camel/ChangeLog
+++ b/src/camel/ChangeLog
@@ -1,3 +1,10 @@
+2009-08-05 Johnny Jacob <jjohnny novell com>
+
+ Bug 590242 â?? apply filter automatically to new message doesn't work.
+
+ * camel-mapi-store.c (mapi_construct): Mark for message filtering if
+ user has selected 'Automatically filter messages" option.
+
2009-07-13 Johnny Jacob <jjohnny novell com>
** Fix for Bug 586924 â?? Evolution crashed when trying to send mail
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index a8ae10d..1de3256 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -2030,10 +2030,8 @@ camel_mapi_folder_new(CamelStore *store, const char *folder_name, const char *fo
/* return NULL; */
/* } */
- if (!strcmp (folder_name, "Mailbox")) {
- if (camel_url_get_param (((CamelService *) store)->url, "filter"))
- folder->folder_flags |= CAMEL_FOLDER_FILTER_RECENT;
- }
+ if (camel_url_get_param (((CamelService *) store)->url, "filter"))
+ folder->folder_flags |= CAMEL_FOLDER_FILTER_RECENT;
mapi_folder->search = camel_folder_search_new ();
if (!mapi_folder->search) {
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index 7aaab78..94faa97 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -248,6 +248,11 @@ static void mapi_construct(CamelService *service, CamelSession *session,
CAMEL_URL_HIDE_PARAMS |
CAMEL_URL_HIDE_AUTH) );
+
+ /*filter*/
+ if (camel_url_get_param (url, "filter"))
+ store->flags |= CAMEL_STORE_FILTER_INBOX;
+
/*Hash Table*/
priv->id_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
priv->name_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]