From 40934b5c2a61b36d997d0570706d600fda610d80 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 17 Jul 2001 16:42:35 +0000 Subject: Use CAMEL_VTRASH_NAME. 2001-07-17 Jeffrey Stedfast * mail-local.c (init_trash): Use CAMEL_VTRASH_NAME. * mail-ops.c (add_vtrash_info): Use CAMEL_VTRASH_NAME. * folder-browser.c: turned off some debugging 2001-07-16 Jeffrey Stedfast * mail-callbacks.c (transfer_msg): Disallow vtrash for now... svn path=/trunk/; revision=11159 --- mail/mail-tools.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'mail/mail-tools.c') diff --git a/mail/mail-tools.c b/mail/mail-tools.c index cf140f7643..c72a5d2d02 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -253,23 +253,23 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex) CamelStore *store = NULL; CamelFolder *folder = NULL; int offset = 0; - + g_return_val_if_fail (uri != NULL, NULL); - + folder = mail_folder_cache_try_folder (uri); if (folder) { camel_object_ref (CAMEL_OBJECT (folder)); return folder; } - + if (!strncmp (uri, "vtrash:", 7)) offset = 7; - + url = camel_url_new (uri + offset, ex); if (!url) { return NULL; } - + if (!strcmp (url->protocol, "vfolder")) { folder = vfolder_uri_to_folder (uri, ex); } else { @@ -287,7 +287,7 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex) else name = ""; } - + if (offset) folder = camel_store_get_trash (store, ex); else @@ -296,7 +296,7 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex) camel_object_unref (CAMEL_OBJECT (store)); } } - + if (camel_exception_is_set (ex)) { if (folder) { camel_object_unref (CAMEL_OBJECT (folder)); @@ -304,9 +304,9 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex) } } else mail_folder_cache_note_folder (uri, folder); - + camel_url_free (url); - + return folder; } -- cgit