[evolution] get_receive_type(): Avoid hard-coding built-in mail store names.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] get_receive_type(): Avoid hard-coding built-in mail store names.
- Date: Wed, 4 Jan 2012 15:05:02 +0000 (UTC)
commit 79e691cc11662e6a2f0fdd7ecb02364f8dc3c5cb
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Jan 4 09:47:38 2012 -0500
get_receive_type(): Avoid hard-coding built-in mail store names.
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 45c78cb..4e206ea 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]) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]