aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/mail-send-recv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 45c78cb24f..4e206ea221 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -437,9 +437,9 @@ get_receive_type (CamelService *service)
/* 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)
+ if (g_strcmp0 (uid, E_MAIL_SESSION_LOCAL_UID) == 0)
+ return SEND_INVALID;
+ if (g_strcmp0 (uid, E_MAIL_SESSION_VFOLDER_UID) == 0)
return SEND_INVALID;
if (provider->object_types[CAMEL_PROVIDER_STORE]) {