aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-01-04 22:47:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-01-04 22:47:38 +0800
commit79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb (patch)
tree4cc55d500f6d43cf94bbc4b85b7f22d18123e127 /mail
parentef8832bb8035edaad77749413afc110e9b8ea01e (diff)
downloadgsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.tar
gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.tar.gz
gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.tar.bz2
gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.tar.lz
gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.tar.xz
gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.tar.zst
gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.zip
get_receive_type(): Avoid hard-coding built-in mail store names.
Diffstat (limited to 'mail')
-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]) {