From f02bb4526c6b80f728241de157d9c19a8b19187a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 30 Nov 2013 09:37:08 -0500 Subject: em_utils_is_local_delivery_mbox_file(): Take a CamelService. More convenient than constructing a CamelURL just for this function. Also, document it. --- mail/mail-send-recv.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'mail/mail-send-recv.c') 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); -- cgit v1.2.3