aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-folder-utils.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-03 18:06:20 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:05 +0800
commitf4695f09ebe3f01c142c49ac8718983d4f777dd5 (patch)
tree0cd5b2b1c098f714028c1c4b823dea3f4f00c430 /mail/e-mail-folder-utils.h
parent4139e132c1d11b75d7741b0750d9d7535834327f (diff)
downloadgsoc2013-evolution-f4695f09ebe3f01c142c49ac8718983d4f777dd5.tar
gsoc2013-evolution-f4695f09ebe3f01c142c49ac8718983d4f777dd5.tar.gz
gsoc2013-evolution-f4695f09ebe3f01c142c49ac8718983d4f777dd5.tar.bz2
gsoc2013-evolution-f4695f09ebe3f01c142c49ac8718983d4f777dd5.tar.lz
gsoc2013-evolution-f4695f09ebe3f01c142c49ac8718983d4f777dd5.tar.xz
gsoc2013-evolution-f4695f09ebe3f01c142c49ac8718983d4f777dd5.tar.zst
gsoc2013-evolution-f4695f09ebe3f01c142c49ac8718983d4f777dd5.zip
Add some handy folder URI utility functions.
e_mail_folder_uri_parse() Parses a folder URI and returns a corresponding CamelStore instance and folder name string, or else sets a GError. e_mail_folder_uri_equal() Compares two folder URIs for equality. Replaces camel_store_folder_uri_equal(). e_mail_folder_uri_from_folder() This will eventually replace camel_folder_get_uri(), but for now it just calls camel_folder_get_uri() and duplicates the URI string.
Diffstat (limited to 'mail/e-mail-folder-utils.h')
-rw-r--r--mail/e-mail-folder-utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/e-mail-folder-utils.h b/mail/e-mail-folder-utils.h
index 7872f3e146..3187acfdf2 100644
--- a/mail/e-mail-folder-utils.h
+++ b/mail/e-mail-folder-utils.h
@@ -45,6 +45,16 @@ gboolean e_mail_folder_append_message_finish
gchar **appended_uid,
GError **error);
+gboolean e_mail_folder_uri_parse (CamelSession *session,
+ const gchar *folder_uri,
+ CamelStore **out_store,
+ gchar **out_folder_name,
+ GError **error);
+gboolean e_mail_folder_uri_equal (CamelSession *session,
+ const gchar *folder_uri_a,
+ const gchar *folder_uri_b);
+gchar * e_mail_folder_uri_from_folder (CamelFolder *folder);
+
G_END_DECLS
#endif /* E_MAIL_FOLDER_UTILS_H */