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



commit 6ff6b480482d06798b155cc225c6bd07470917a3
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 2fdee28..deda4b1 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1564,6 +1564,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)
@@ -1853,10 +1855,12 @@ search_address_in_addressbooks (const gchar *address, gboolean local_only, gbool
 
 	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? */
@@ -1864,6 +1868,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
@@ -1905,6 +1912,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;
@@ -1973,6 +1981,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,
@@ -1980,6 +1991,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;
@@ -2018,6 +2030,7 @@ emu_remove_from_mail_cache (const GSList *addresses)
 	}
 
 	g_object_unref (cia);
+#endif /* ACCOUNT_MGMT */
 }
 
 void
@@ -2038,6 +2051,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) {
@@ -2069,6 +2083,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]