aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-11 04:26:41 +0800
committerDan Winship <danw@src.gnome.org>2000-08-11 04:26:41 +0800
commit44b1cb734d895fc1a287a651101a6446af261697 (patch)
tree171e87db2b04a719e72b2e7a787199431ac994af /mail/mail-tools.c
parent5bf17131df95ad49d7a98768b05177092ad2a618 (diff)
downloadgsoc2013-evolution-44b1cb734d895fc1a287a651101a6446af261697.tar
gsoc2013-evolution-44b1cb734d895fc1a287a651101a6446af261697.tar.gz
gsoc2013-evolution-44b1cb734d895fc1a287a651101a6446af261697.tar.bz2
gsoc2013-evolution-44b1cb734d895fc1a287a651101a6446af261697.tar.lz
gsoc2013-evolution-44b1cb734d895fc1a287a651101a6446af261697.tar.xz
gsoc2013-evolution-44b1cb734d895fc1a287a651101a6446af261697.tar.zst
gsoc2013-evolution-44b1cb734d895fc1a287a651101a6446af261697.zip
Add a "gboolean create" argument to pass to camel_store_get_folder.
* mail-tools.c (mail_tool_get_folder_from_urlname): Add a "gboolean create" argument to pass to camel_store_get_folder. * mail-ops.c (do_create_folder, do_setup_draftbox): * mail-local.c (mail_tool_local_uri_to_folder): * mail-vfolder.c (vfolder_uri_to_folder): Add create flag to mail_tool_get_folder_from_urlname calls. svn path=/trunk/; revision=4702
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r--mail/mail-tools.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index 2ae83229ef..e44d42a4df 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -88,7 +88,8 @@ void mail_tool_camel_lock_down (void)
/* **************************************** */
CamelFolder *
-mail_tool_get_folder_from_urlname (const gchar *url, const gchar *name, CamelException *ex)
+mail_tool_get_folder_from_urlname (const gchar *url, const gchar *name,
+ gboolean create, CamelException *ex)
{
CamelStore *store;
CamelFolder *folder;
@@ -110,7 +111,7 @@ mail_tool_get_folder_from_urlname (const gchar *url, const gchar *name, CamelExc
return NULL;
}
- folder = camel_store_get_folder (store, name, FALSE, ex);
+ folder = camel_store_get_folder (store, name, create, ex);
camel_object_unref (CAMEL_OBJECT (store));
mail_tool_camel_lock_down();
@@ -136,7 +137,7 @@ mail_tool_get_local_inbox (CamelException *ex)
CamelFolder *folder;
url = mail_tool_get_local_inbox_url();
- folder = mail_tool_get_folder_from_urlname (url, "mbox", ex);
+ folder = mail_tool_get_folder_from_urlname (url, "mbox", TRUE, ex);
g_free (url);
return folder;
}
@@ -145,7 +146,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", ex);
+ return mail_tool_get_folder_from_urlname (url, "inbox", FALSE, ex);
}
@@ -212,7 +213,7 @@ mail_tool_do_movemail (const gchar *source_url, CamelException *ex)
/* Get the CamelFolder for our dest_path. */
- ret = mail_tool_get_folder_from_urlname (dest_url, "movemail", ex);
+ ret = mail_tool_get_folder_from_urlname (dest_url, "movemail", TRUE, ex);
g_free (dest_url);
return ret;
}
@@ -448,7 +449,7 @@ mail_tool_fetch_mail_into_searchable (const char *source_url, gboolean keep_on_s
gchar *url;
url = mail_tool_get_local_inbox_url();
- search_folder = mail_tool_get_folder_from_urlname (url, "movemail", ex);
+ search_folder = mail_tool_get_folder_from_urlname (url, "movemail", TRUE, ex);
g_free (url);
if (camel_exception_is_set (ex))
goto cleanup;