diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-06 04:02:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-06 04:02:56 +0800 |
commit | 1ffacfeee95b69419b96423afef91b66be2a7d34 (patch) | |
tree | 27efde6421d0961e48423222ae7df2954cf2affc /mail/e-mail-folder-utils.h | |
parent | f967ad1dcbe459b9b4f9ae84cf26a1720b81f210 (diff) | |
download | gsoc2013-evolution-1ffacfeee95b69419b96423afef91b66be2a7d34.tar.gz gsoc2013-evolution-1ffacfeee95b69419b96423afef91b66be2a7d34.tar.zst gsoc2013-evolution-1ffacfeee95b69419b96423afef91b66be2a7d34.zip |
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.
Diffstat (limited to 'mail/e-mail-folder-utils.h')
-rw-r--r-- | mail/e-mail-folder-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |