From 1ffacfeee95b69419b96423afef91b66be2a7d34 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 5 May 2011 16:02:56 -0400 Subject: Introduce a new, simpler folder URI format. Folder URIs shall henceforth be exclusive to Evolution. The new format is: 'folder://' CAMEL_STORE_UID '/' CAMEL_FOLDER_PATH Add e_mail_folder_uri_build() to construct such a URI from a CamelStore and folder path string, change e_mail_folder_uri_from_folder() to build the new URI, and teach e_mail_folder_uri_parse() to parse it. e_mail_folder_uri_parse() will continue to know how to parse the older URI formats still present in config files and GConf keys. This captures the legacy knowledge neatly into one function. --- mail/e-mail-folder-utils.h | 2 ++ 1 file changed, 2 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 3187acfdf2..0d2f0ca0f9 100644 --- a/mail/e-mail-folder-utils.h +++ b/mail/e-mail-folder-utils.h @@ -45,6 +45,8 @@ gboolean e_mail_folder_append_message_finish gchar **appended_uid, GError **error); +gchar * e_mail_folder_uri_build (CamelStore *store, + const gchar *folder_name); gboolean e_mail_folder_uri_parse (CamelSession *session, const gchar *folder_uri, CamelStore **out_store, -- cgit