diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-01-04 22:47:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-01-04 22:47:38 +0800 |
commit | 79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb (patch) | |
tree | 4cc55d500f6d43cf94bbc4b85b7f22d18123e127 /mail/mail-send-recv.c | |
parent | ef8832bb8035edaad77749413afc110e9b8ea01e (diff) | |
download | gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.tar.gz gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.tar.zst gsoc2013-evolution-79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb.zip |
get_receive_type(): Avoid hard-coding built-in mail store names.
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 6 |
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]) { |