aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-27 10:56:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-27 10:56:45 +0800
commit2b55c2266b94b38b14117e0bd0b4e6a98658bfb5 (patch)
tree4876f4dd9eeddd6c0b81482266cb391cc5e170a2 /mail/component-factory.c
parente44fff904efc9f973d6f725fa3712b8a46a42a6f (diff)
downloadgsoc2013-evolution-2b55c2266b94b38b14117e0bd0b4e6a98658bfb5.tar
gsoc2013-evolution-2b55c2266b94b38b14117e0bd0b4e6a98658bfb5.tar.gz
gsoc2013-evolution-2b55c2266b94b38b14117e0bd0b4e6a98658bfb5.tar.bz2
gsoc2013-evolution-2b55c2266b94b38b14117e0bd0b4e6a98658bfb5.tar.lz
gsoc2013-evolution-2b55c2266b94b38b14117e0bd0b4e6a98658bfb5.tar.xz
gsoc2013-evolution-2b55c2266b94b38b14117e0bd0b4e6a98658bfb5.tar.zst
gsoc2013-evolution-2b55c2266b94b38b14117e0bd0b4e6a98658bfb5.zip
If the store is not connected, scan it's subfolders first.
2001-08-26 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (receive_update_got_store): If the store is not connected, scan it's subfolders first. * mail-ops.c (report_status): Call va_end() so LinuxPPC doesn't have a caniption. svn path=/trunk/; revision=12479
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index b1c729297c..80c6bdb8fc 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -969,12 +969,11 @@ mail_load_storage_by_uri (GNOME_Evolution_Shell shell, const char *uri, const ch
*/
if ((!(prov->flags & CAMEL_PROVIDER_IS_STORAGE) ||
!(prov->flags & CAMEL_PROVIDER_IS_REMOTE))
- && !((strcmp(prov->protocol, "spool") == 0)
- || strcmp(prov->protocol, "maildir") == 0))
+ && !((strcmp (prov->protocol, "spool") == 0)
+ || strcmp (prov->protocol, "maildir") == 0))
return;
-
- store = camel_session_get_service (session, uri,
- CAMEL_PROVIDER_STORE, &ex);
+
+ store = camel_session_get_service (session, uri, CAMEL_PROVIDER_STORE, &ex);
if (store == NULL) {
/* FIXME: real error dialog */
g_warning ("couldn't get service %s: %s\n", uri,
@@ -982,23 +981,23 @@ mail_load_storage_by_uri (GNOME_Evolution_Shell shell, const char *uri, const ch
camel_exception_clear (&ex);
return;
}
-
+
if (name == NULL) {
char *service_name;
-
+
service_name = camel_service_get_name (store, TRUE);
add_storage (service_name, uri, store, shell, &ex);
g_free (service_name);
} else
add_storage (name, uri, store, shell, &ex);
-
+
if (camel_exception_is_set (&ex)) {
/* FIXME: real error dialog */
g_warning ("Cannot load storage: %s",
camel_exception_get_description (&ex));
camel_exception_clear (&ex);
}
-
+
camel_object_unref (CAMEL_OBJECT (store));
}