aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c8
1 files changed, 8 insertions, 0 deletions
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;