diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-06 04:34:10 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:09 +0800 |
commit | 09b0db195641cb2a7d7b942c012be1b50420f0cd (patch) | |
tree | 3ea738b0b482cddd14a0b4f34e8d36970724539a /mail | |
parent | 5f6ea9db8dd59694a570502442c9f589e67bc89b (diff) | |
download | gsoc2013-evolution-09b0db195641cb2a7d7b942c012be1b50420f0cd.tar.gz gsoc2013-evolution-09b0db195641cb2a7d7b942c012be1b50420f0cd.tar.zst gsoc2013-evolution-09b0db195641cb2a7d7b942c012be1b50420f0cd.zip |
e_mail_local_init(): Use the new folder URI format.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-local.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/e-mail-local.c b/mail/e-mail-local.c index a3488136e0..46acb9f5b5 100644 --- a/mail/e-mail-local.c +++ b/mail/e-mail-local.c @@ -23,6 +23,8 @@ #include <glib/gi18n.h> +#include "e-mail-folder-utils.h" + #define CHECK_LOCAL_FOLDER_TYPE(type) \ ((type) < G_N_ELEMENTS (default_local_folders)) @@ -79,16 +81,14 @@ e_mail_local_init (EMailSession *session, /* Populate the rest of the default_local_folders array. */ for (ii = 0; ii < G_N_ELEMENTS (default_local_folders); ii++) { const gchar *display_name; - gchar *folder_uri; display_name = default_local_folders[ii].display_name; - /* XXX Should this URI be account relative? */ - camel_url_set_fragment (url, display_name); - folder_uri = camel_url_to_string (url, 0); + default_local_folders[ii].folder_uri = + e_mail_folder_uri_build ( + CAMEL_STORE (service), display_name); /* FIXME camel_store_get_folder() may block. */ - default_local_folders[ii].folder_uri = folder_uri; if (!strcmp (display_name, "Inbox")) default_local_folders[ii].folder = camel_store_get_inbox_folder_sync ( |