aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-08-13 12:23:42 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-08-13 12:23:42 +0800
commitc1f24d07e4670d9a98676ae700f567f658236e2d (patch)
treec005b78cf04de7d701a2e34d8f8ada41dc62db7a /mail/mail-tools.c
parent05a0341981506392137e5ed820b80192d274c35d (diff)
downloadgsoc2013-evolution-c1f24d07e4670d9a98676ae700f567f658236e2d.tar.gz
gsoc2013-evolution-c1f24d07e4670d9a98676ae700f567f658236e2d.tar.zst
gsoc2013-evolution-c1f24d07e4670d9a98676ae700f567f658236e2d.zip
Updated to reflect changes to mail_do_scan_subfolders
2000-08-13 Jeffrey Stedfast <fejj@helixcode.com> * component-factory.c (create_news_storage): Updated to reflect changes to mail_do_scan_subfolders (create_imap_storage): Same. * mail-ops.c (mail_do_scan_subfolders): No longer takes an add_INBOX argument svn path=/trunk/; revision=4795
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 9e047ab3fb..5431679073 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -580,38 +580,39 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex)
char *service, *ptr;
service = g_strdup_printf ("%s/", uri);
- for (ptr = service + 7; *ptr && *ptr != '/'; ptr++) {};
+ for (ptr = service + 7; *ptr && *ptr != '/'; ptr++);
ptr++;
*ptr = '\0';
-
- mail_tool_camel_lock_up();
+
+ mail_tool_camel_lock_up ();
store = camel_session_get_store (session, service, ex);
g_free (service);
if (store) {
CamelURL *url = CAMEL_SERVICE (store)->url;
char *folder_uri;
-
- for (ptr = (char *)(uri + 7); *ptr && *ptr != '/'; ptr++) {};
+
+ for (ptr = (char *)(uri + 7); *ptr && *ptr != '/'; ptr++);
if (*ptr == '/') {
if (url && url->path) {
ptr += strlen (url->path);
+ printf ("ptr = %s\n", ptr);
if (*ptr == '/')
ptr++;
}
-
+
if (*ptr == '/')
ptr++;
/*for ( ; *ptr && *ptr == '/'; ptr++);*/
-
+
folder_uri = g_strdup (ptr);
folder = camel_store_get_folder (store, folder_uri, TRUE, ex);
g_free (folder_uri);
}
}
+
+ mail_tool_camel_lock_down ();
- mail_tool_camel_lock_down();
-
- } else if (!strncmp(uri, "news:", 5)) {
+ } else if (!strncmp (uri, "news:", 5)) {
mail_tool_camel_lock_up();
store = camel_session_get_store (session, uri, ex);
if (store) {