From b21a89d79c6bb6a380b58988d30cff6de03ab91d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 3 May 2011 06:06:20 -0400 Subject: 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. --- mail/e-mail-folder-utils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mail/e-mail-folder-utils.h') 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 */ -- cgit v1.2.3