diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-10-18 14:13:12 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-10-18 14:13:12 +0800 |
commit | ee5eeb1dd21eee94538ffafe27cb58bc80d0d306 (patch) | |
tree | 795fa1429fd972b8439d6d5877f00952888655f7 /mail/mail-tools.c | |
parent | 229f78b929e0a9553b543f596a7643129d80b494 (diff) | |
download | gsoc2013-evolution-ee5eeb1dd21eee94538ffafe27cb58bc80d0d306.tar gsoc2013-evolution-ee5eeb1dd21eee94538ffafe27cb58bc80d0d306.tar.gz gsoc2013-evolution-ee5eeb1dd21eee94538ffafe27cb58bc80d0d306.tar.bz2 gsoc2013-evolution-ee5eeb1dd21eee94538ffafe27cb58bc80d0d306.tar.lz gsoc2013-evolution-ee5eeb1dd21eee94538ffafe27cb58bc80d0d306.tar.xz gsoc2013-evolution-ee5eeb1dd21eee94538ffafe27cb58bc80d0d306.tar.zst gsoc2013-evolution-ee5eeb1dd21eee94538ffafe27cb58bc80d0d306.zip |
No, we REALLY dont want to perform an immediate search as the keys are
2000-10-18 Not Zed <NotZed@HelixCode.com>
* folder-browser.c (folder_browser_gui_init): No, we REALLY dont
want to perform an immediate search as the keys are pressed.
* mail-display.c (on_object_requested): Kill a minor warning with
a cast.
* mail-config.c: Include mising ctype.h to kill a warning.
* message-thread.c (main): Fixed the test case for api changes.
* message-list.c (message_list_drag_data_get): Set some flags to
get_folder(). I dont even think this will work because
mail_tool_get_folder doesn't handle file url's.
* mail-vfolder.c (vfolder_uri_to_folder): Pass appropriate flags.
* mail-ops.c (do_setup_folder): Pass appropriate flags. Hmm,
whats the difference between setup and create. *shrug*
(do_create_folder): Pass appropriate flags to get_folder. Needs a
way to specify the index flag.
* mail-tools.c (mail_tool_get_folder_from_urlname): Changed create
to flags argument.
(mail_tool_get_local_inbox_url): Add an index argument.
(mail_tool_get_local_inbox): honour index flag.
(mail_tool_get_inbox): Changed for api change.
(mail_tool_uri_to_folder): Fixed calls to store_get_folder();
* mail-local.c (load_metainfo): Added an indexed field to the metainfo.
(save_metainfo): And save it too.
(do_reconfigure_folder): Honour index flag when creating the new
folder. Do not open the old folder with an index at all.
(mail_local_map_uri): Add an index argument - tells if the mbox is
indexed.
(mail_tool_local_uri_to_folder): Create & pass flags properly.
(#include gnome.h): Dont include all of gnome, just what we use,
and explicity include xml-memory, so we get xmlFree().
svn path=/trunk/; revision=5979
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r-- | mail/mail-tools.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c index ccbcce3d1d..ae76bb544d 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -88,7 +88,7 @@ void mail_tool_camel_lock_down (void) CamelFolder * mail_tool_get_folder_from_urlname (const gchar *url, const gchar *name, - gboolean create, CamelException *ex) + guint32 flags, CamelException *ex) { CamelStore *store; CamelFolder *folder; @@ -109,7 +109,7 @@ mail_tool_get_folder_from_urlname (const gchar *url, const gchar *name, *} */ - folder = camel_store_get_folder (store, name, create, ex); + folder = camel_store_get_folder (store, name, flags, ex); camel_object_unref (CAMEL_OBJECT (store)); mail_tool_camel_lock_down(); @@ -136,12 +136,12 @@ mail_tool_get_folder_name (CamelFolder *folder) } gchar * -mail_tool_get_local_inbox_url (void) +mail_tool_get_local_inbox_url (int *index) { char *uri, *new; uri = g_strdup_printf("file://%s/local/Inbox", evolution_dir); - new = mail_local_map_uri(uri); + new = mail_local_map_uri(uri, index); g_free(uri); return new; } @@ -163,9 +163,13 @@ mail_tool_get_local_inbox (CamelException *ex) { gchar *url; CamelFolder *folder; + int index; + guint32 flags = CAMEL_STORE_FOLDER_CREATE; - url = mail_tool_get_local_inbox_url(); - folder = mail_tool_get_folder_from_urlname (url, "mbox", TRUE, ex); + url = mail_tool_get_local_inbox_url(&index); + if (index) + flags |= CAMEL_STORE_FOLDER_BODY_INDEX; + folder = mail_tool_get_folder_from_urlname (url, "mbox", flags, ex); g_free (url); return folder; } @@ -174,7 +178,7 @@ CamelFolder * mail_tool_get_inbox (const gchar *url, CamelException *ex) { /* FIXME: should be smarter? get_default_folder, etc */ - return mail_tool_get_folder_from_urlname (url, "inbox", FALSE, ex); + return mail_tool_get_folder_from_urlname (url, "inbox", 0, ex); } @@ -516,7 +520,7 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex) /*for ( ; *ptr && *ptr == '/'; ptr++);*/ folder_uri = g_strdup (ptr); - folder = camel_store_get_folder (store, folder_uri, TRUE, ex); + folder = camel_store_get_folder (store, folder_uri, CAMEL_STORE_FOLDER_CREATE, ex); g_free (folder_uri); } } @@ -533,7 +537,7 @@ mail_tool_uri_to_folder (const char *uri, CamelException *ex) if (*ptr == '/') { ptr++; folder_path = ptr; - folder = camel_store_get_folder (store, folder_path, FALSE, ex); + folder = camel_store_get_folder (store, folder_path, 0, ex); } } |