[evolution-ews] Bug #695921 - Error is shown when a folder is created in the root (same level than "Inbox")
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug #695921 - Error is shown when a folder is created in the root (same level than "Inbox")
- Date: Wed, 20 Mar 2013 15:46:26 +0000 (UTC)
commit e979f19ddcef9c3b1063676b90df912b55b1164e
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]