[evolution-mapi/gnome-2-32] Bug #629499 - Runs incoming filters in all folders
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi/gnome-2-32] Bug #629499 - Runs incoming filters in all folders
- Date: Wed, 29 Sep 2010 10:41:04 +0000 (UTC)
commit 8e43bdeb4295c0c1ff63b23a1ce13834484ed100
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 29 12:40:43 2010 +0200
Bug #629499 - Runs incoming filters in all folders
src/camel/camel-mapi-folder.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index 402959a..6e55bed 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -1828,8 +1828,18 @@ camel_mapi_folder_new (CamelStore *store, const gchar *folder_name, const gchar
/* return NULL; */
/* } */
- if (camel_url_get_param (((CamelService *) store)->url, "filter"))
- folder->folder_flags |= CAMEL_FOLDER_FILTER_RECENT;
+ if ((store->flags & CAMEL_STORE_FILTER_INBOX) != 0) {
+ CamelFolderInfo *fi;
+
+ fi = camel_store_get_folder_info (store, folder_name, 0, NULL);
+ if (fi) {
+ if ((fi->flags & CAMEL_FOLDER_TYPE_MASK) == CAMEL_FOLDER_TYPE_INBOX) {
+ folder->folder_flags |= CAMEL_FOLDER_FILTER_RECENT;
+ }
+
+ camel_store_free_folder_info (store, fi);
+ }
+ }
mapi_folder->search = camel_folder_search_new ();
if (!mapi_folder->search) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]