diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-06 04:34:10 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-06 04:34:10 +0800 |
commit | 3cd59099b02341d95f7ece384243e5bb974a6c2a (patch) | |
tree | 1c502ab599214c72d7c20232215cf09ba0793693 /mail | |
parent | cb9a7d783e6d479789267bc4a4e75addf6b6173a (diff) | |
download | gsoc2013-evolution-3cd59099b02341d95f7ece384243e5bb974a6c2a.tar gsoc2013-evolution-3cd59099b02341d95f7ece384243e5bb974a6c2a.tar.gz gsoc2013-evolution-3cd59099b02341d95f7ece384243e5bb974a6c2a.tar.bz2 gsoc2013-evolution-3cd59099b02341d95f7ece384243e5bb974a6c2a.tar.lz gsoc2013-evolution-3cd59099b02341d95f7ece384243e5bb974a6c2a.tar.xz gsoc2013-evolution-3cd59099b02341d95f7ece384243e5bb974a6c2a.tar.zst gsoc2013-evolution-3cd59099b02341d95f7ece384243e5bb974a6c2a.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 ( |