From 9df46251a323b7f2cf11eb14742ed6f1c55b3ccc Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 3 Jan 2012 19:18:38 +0100 Subject: Bug #666832 - Skip local/vfolder services from Send/Receive update --- mail/mail-send-recv.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mail') diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index f38cdb3a1d..45c78cb24f 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -418,6 +418,7 @@ get_receive_type (CamelService *service) { CamelURL *url; CamelProvider *provider; + const gchar *uid; gboolean is_local_delivery; url = camel_service_new_camel_url (service); @@ -434,6 +435,13 @@ get_receive_type (CamelService *service) if (provider == NULL) return SEND_INVALID; + /* skip some well-known services */ + uid = camel_service_get_uid (service); + if (!uid || !*uid || + g_ascii_strcasecmp (uid, "local") == 0 || + g_ascii_strcasecmp (uid, "vfolder") == 0) + return SEND_INVALID; + if (provider->object_types[CAMEL_PROVIDER_STORE]) { if (provider->flags & CAMEL_PROVIDER_IS_STORAGE) return SEND_UPDATE; -- cgit