[evolution/account-mgmt: 15/33] Temporarily disable the whole email/addressbook integration mess.



commit 9cf2be8f567dd087e347e02db121d36d0b833121
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Dec 8 00:27:23 2010 -0500

    Temporarily disable the whole email/addressbook integration mess.

 mail/em-utils.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 15008ab..5c3ca1d 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1589,6 +1589,8 @@ gchar *em_uri_to_camel (const gchar *euri)
 
 /* ********************************************************************** */
 
+#if 0  /* ACCOUNT_MGMT */
+
 /* runs sync, in main thread */
 static gpointer
 emu_addr_setup (gpointer user_data)
@@ -1917,10 +1919,12 @@ search_address_in_addressbooks (const gchar *address,
 
 	return found_any;
 }
+#endif /* ACCOUNT_MGMT */
 
 gboolean
 em_utils_in_addressbook (CamelInternetAddress *iaddr, gboolean local_only)
 {
+#if 0  /* ACCOUNT_MGMT */
 	const gchar *addr;
 
 	/* TODO: check all addresses? */
@@ -1928,6 +1932,9 @@ em_utils_in_addressbook (CamelInternetAddress *iaddr, gboolean local_only)
 		return FALSE;
 
 	return search_address_in_addressbooks (addr, local_only, NULL, NULL);
+#endif  /* ACCOUNT_MGMT */
+
+	return FALSE;
 }
 
 static gboolean
@@ -1969,6 +1976,7 @@ static GSList *photos_cache = NULL; /* list of PhotoInfo-s */
 CamelMimePart *
 em_utils_contact_photo (CamelInternetAddress *cia, gboolean local_only)
 {
+#if 0  /* ACCOUNT_MGMT */
 	const gchar *addr = NULL;
 	CamelMimePart *part = NULL;
 	EContactPhoto *photo = NULL;
@@ -2038,6 +2046,9 @@ em_utils_contact_photo (CamelInternetAddress *cia, gboolean local_only)
 	G_UNLOCK (photos_cache);
 
 	return part;
+#endif /* ACCOUNT_MGMT */
+
+	return NULL;
 }
 
 /* list of email addresses (strings) to remove from local cache of photos and contacts,
@@ -2045,6 +2056,7 @@ em_utils_contact_photo (CamelInternetAddress *cia, gboolean local_only)
 void
 emu_remove_from_mail_cache (const GSList *addresses)
 {
+#if 0  /* ACCOUNT_MGMT */
 	const GSList *a;
 	GSList *p;
 	CamelInternetAddress *cia;
@@ -2083,6 +2095,7 @@ emu_remove_from_mail_cache (const GSList *addresses)
 	}
 
 	g_object_unref (cia);
+#endif /* ACCOUNT_MGMT */
 }
 
 void
@@ -2104,6 +2117,7 @@ emu_remove_from_mail_cache_1 (const gchar *address)
 void
 emu_free_mail_cache (void)
 {
+#if 0  /* ACCOUNT_MGMT */
 	G_LOCK (contact_cache);
 
 	if (emu_books_hash) {
@@ -2135,6 +2149,7 @@ emu_free_mail_cache (void)
 	photos_cache = NULL;
 
 	G_UNLOCK (photos_cache);
+#endif /* ACCOUNT_MGMT */
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]