[evolution-ews/gnome-3-8] Bug #695921 - Error is shown when a folder is created in the root (same level than "Inbox")



commit ba003276c6fc4f20fe9bf55a7a685217dd740362
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Mon Mar 18 02:28:00 2013 +0100

    Bug #695921 - Error is shown when a folder is created in the root (same level
    than "Inbox")

 src/camel/camel-ews-store.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-ews-store.c b/src/camel/camel-ews-store.c
index 0a068ac..f8676bb 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -2322,6 +2322,11 @@ ews_store_subscribe_folder_sync (CamelSubscribable *subscribable,
                return FALSE;
        }
 
+       /* Folder's name is not stored with the "/" in the beginning, even when the
+          folder is in the root (same level as "Inbox", "Drafts", etc. */
+       if (*folder_name == '/')
+               folder_name++;
+
        /* can subscribe only public folders,
           thus skip anything known */
        tmp = camel_ews_store_summary_get_folder_id_from_name (ews_store->summary, folder_name);


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