[evolution-ews] Bug #668489 - Hide other than mail folders from mailer
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug #668489 - Hide other than mail folders from mailer
- Date: Fri, 15 Feb 2013 12:02:26 +0000 (UTC)
commit b17d14f0b87f7432603c0aff54d2d4ef01914f48
Author: Milan Crha <mcrha redhat com>
Date: Fri Feb 15 13:01:35 2013 +0100
Bug #668489 - Hide other than mail folders from mailer
src/server/e-ews-folder.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/server/e-ews-folder.c b/src/server/e-ews-folder.c
index 976e342..17d2e8a 100644
--- a/src/server/e-ews-folder.c
+++ b/src/server/e-ews-folder.c
@@ -119,7 +119,7 @@ e_ews_folder_init (EEwsFolder *folder)
folder->priv = priv;
priv->error = NULL;
- priv->folder_type = E_EWS_FOLDER_TYPE_MAILBOX;
+ priv->folder_type = E_EWS_FOLDER_TYPE_UNKNOWN;
priv->foreign = FALSE;
}
@@ -162,7 +162,11 @@ e_ews_folder_set_from_soap_parameter (EEwsFolder *folder,
if (subparam) {
gchar *folder_class = e_soap_parameter_get_string_value (subparam);
- if (g_strcmp0 (folder_class, "IPF.Contact") == 0) {
+ priv->folder_type = E_EWS_FOLDER_TYPE_UNKNOWN;
+
+ if (g_strcmp0 (folder_class, "IPF.Note") == 0 || (folder_class && g_str_has_prefix
(folder_class, "IPF.Note."))) {
+ priv->folder_type = E_EWS_FOLDER_TYPE_MAILBOX;
+ } else if (g_strcmp0 (folder_class, "IPF.Contact") == 0) {
priv->folder_type = E_EWS_FOLDER_TYPE_CONTACTS;
} else if (g_strcmp0 (folder_class, "IPF.Appointment") == 0) {
priv->folder_type = E_EWS_FOLDER_TYPE_CALENDAR;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]