aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.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/mail-send-recv.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/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index dbdf629110..1a89a3b4b4 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -432,22 +432,16 @@ format_service_name (CamelService *service)
static send_info_t
get_receive_type (CamelService *service)
{
- CamelURL *url;
CamelProvider *provider;
const gchar *uid;
- gboolean is_local_delivery;
/* Disregard CamelNullStores. */
if (CAMEL_IS_NULL_STORE (service))
return SEND_INVALID;
- url = camel_service_new_camel_url (service);
- is_local_delivery = em_utils_is_local_delivery_mbox_file (url);
- camel_url_free (url);
-
/* mbox pointing to a file is a 'Local delivery'
* source which requires special processing. */
- if (is_local_delivery)
+ if (em_utils_is_local_delivery_mbox_file (service))
return SEND_RECEIVE;
provider = camel_service_get_provider (service);