[evolution-patches] Patch to remove camel EXTERNAL_PROVIDER checks in Mailer
- From: Nicel KM <mnicel novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Patch to remove camel EXTERNAL_PROVIDER checks in Mailer
- Date: Thu, 29 Jan 2004 14:10:56 +0530
Hi,
Here's a patch to remove the CAMEL_IS_EXTERNAL_PROVIDER checks in
evolution/mail/, making it to load external provider mail folders.
thanks,
-Nicel.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3037
diff -u -r1.3037 ChangeLog
--- ChangeLog 25 Jan 2004 15:47:26 -0000 1.3037
+++ ChangeLog 29 Jan 2004 08:32:17 -0000
@@ -1,3 +1,9 @@
+2004-01-29 Nicel KM <mnicel novell com>
+
+ * mail-component.c: removed CAMEL_PROVIDER_IS_EXTERNAL check
+ * mail-account-gui.c: likewise
+ * mail-offline-handler.c: likewise
+
2004-01-25 Rodney Dawes <dobey ximian com>
* em-folder-selector.c (em_folder_selector_create_new): Cast the
Index: mail-account-gui.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-account-gui.c,v
retrieving revision 1.142
diff -u -r1.142 mail-account-gui.c
--- mail-account-gui.c 13 Nov 2003 22:33:02 -0000 1.142
+++ mail-account-gui.c 29 Jan 2004 08:32:17 -0000
@@ -2042,8 +2042,7 @@
new->smime_encrypt_to_self = gtk_toggle_button_get_active (gui->smime_encrypt_to_self);
#endif /* HAVE_NSS */
- is_storage = provider && (provider->flags & CAMEL_PROVIDER_IS_STORAGE) &&
- !(provider->flags & CAMEL_PROVIDER_IS_EXTERNAL);
+ is_storage = provider && (provider->flags & CAMEL_PROVIDER_IS_STORAGE);
if (!mail_config_find_account (account)) {
/* this is a new account so add it to our account-list */
Index: mail-component.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-component.c,v
retrieving revision 1.45
diff -u -r1.45 mail-component.c
--- mail-component.c 20 Jan 2004 04:32:41 -0000 1.45
+++ mail-component.c 29 Jan 2004 08:32:18 -0000
@@ -136,8 +136,7 @@
CamelStore *store = key;
CamelService *service = CAMEL_SERVICE (store);
- if (! (service->provider->flags & CAMEL_PROVIDER_IS_REMOTE)
- || (service->provider->flags & CAMEL_PROVIDER_IS_EXTERNAL))
+ if (! (service->provider->flags & CAMEL_PROVIDER_IS_REMOTE))
return;
if ((CAMEL_IS_DISCO_STORE (service)
@@ -675,8 +674,7 @@
return NULL;
}
- if (!(prov->flags & CAMEL_PROVIDER_IS_STORAGE) ||
- (prov->flags & CAMEL_PROVIDER_IS_EXTERNAL))
+ if (!(prov->flags & CAMEL_PROVIDER_IS_STORAGE))
return NULL;
store = (CamelStore *) camel_session_get_service (session, uri, CAMEL_PROVIDER_STORE, &ex);
@@ -755,8 +753,7 @@
if (!(prov = camel_session_get_provider (session, uri, NULL)))
return;
- if (!(prov->flags & CAMEL_PROVIDER_IS_STORAGE) ||
- (prov->flags & CAMEL_PROVIDER_IS_EXTERNAL))
+ if (!(prov->flags & CAMEL_PROVIDER_IS_STORAGE))
return;
store = (CamelStore *) camel_session_get_service (session, uri, CAMEL_PROVIDER_STORE, NULL);
Index: mail-offline-handler.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-offline-handler.c,v
retrieving revision 1.18
diff -u -r1.18 mail-offline-handler.c
--- mail-offline-handler.c 30 Nov 2003 20:53:49 -0000 1.18
+++ mail-offline-handler.c 29 Jan 2004 08:32:18 -0000
@@ -47,8 +47,7 @@
static gboolean
service_is_relevant (CamelService *service, gboolean going_offline)
{
- if (!(service->provider->flags & CAMEL_PROVIDER_IS_REMOTE) ||
- (service->provider->flags & CAMEL_PROVIDER_IS_EXTERNAL))
+ if (!(service->provider->flags & CAMEL_PROVIDER_IS_REMOTE))
return FALSE;
if (CAMEL_IS_DISCO_STORE (service) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]