From 79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 4 Jan 2012 09:47:38 -0500 Subject: get_receive_type(): Avoid hard-coding built-in mail store names. --- mail/mail-send-recv.c | 6 +++--- 1 file 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]) { -- cgit