aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-11-30 22:37:08 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-11-30 22:45:57 +0800
commitf02bb4526c6b80f728241de157d9c19a8b19187a (patch)
treeb184c04f0cfc58ae32e761b148d3b8973742da7c /mail/em-folder-tree-model.c
parentf911f1754abaf97b9d08f751b97cfb2905d47616 (diff)
downloadgsoc2013-evolution-f02bb4526c6b80f728241de157d9c19a8b19187a.tar
gsoc2013-evolution-f02bb4526c6b80f728241de157d9c19a8b19187a.tar.gz
gsoc2013-evolution-f02bb4526c6b80f728241de157d9c19a8b19187a.tar.bz2
gsoc2013-evolution-f02bb4526c6b80f728241de157d9c19a8b19187a.tar.lz
gsoc2013-evolution-f02bb4526c6b80f728241de157d9c19a8b19187a.tar.xz
gsoc2013-evolution-f02bb4526c6b80f728241de157d9c19a8b19187a.tar.zst
gsoc2013-evolution-f02bb4526c6b80f728241de157d9c19a8b19187a.zip
em_utils_is_local_delivery_mbox_file(): Take a CamelService.
More convenient than constructing a CamelURL just for this function. Also, document it.
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index d25d9d7a1f..0853b640d1 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -1563,11 +1563,10 @@ em_folder_tree_model_add_store (EMFolderTreeModel *model,
if ((provider->flags & CAMEL_PROVIDER_IS_STORAGE) == 0)
return;
- service_url = camel_service_new_camel_url (service);
- if (em_utils_is_local_delivery_mbox_file (service_url)) {
- camel_url_free (service_url);
+ if (em_utils_is_local_delivery_mbox_file (service))
return;
- }
+
+ service_url = camel_service_new_camel_url (service);
uri = camel_url_to_string (service_url, CAMEL_URL_HIDE_ALL);
camel_url_free (service_url);