aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-local.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2010-11-23 04:28:24 +0800
committerChenthill Palanisamy <pchenthill@novell.com>2010-11-23 04:34:03 +0800
commite3dda0436d981d9632a529aa5ca7230cb343694b (patch)
tree08c6ddc8d5daa9ecc8e037ce7ecdc9ea71327952 /mail/e-mail-local.c
parentb5c8f6f9be84477d3fe201c5cc234256399542a6 (diff)
downloadgsoc2013-evolution-e3dda0436d981d9632a529aa5ca7230cb343694b.tar
gsoc2013-evolution-e3dda0436d981d9632a529aa5ca7230cb343694b.tar.gz
gsoc2013-evolution-e3dda0436d981d9632a529aa5ca7230cb343694b.tar.bz2
gsoc2013-evolution-e3dda0436d981d9632a529aa5ca7230cb343694b.tar.lz
gsoc2013-evolution-e3dda0436d981d9632a529aa5ca7230cb343694b.tar.xz
gsoc2013-evolution-e3dda0436d981d9632a529aa5ca7230cb343694b.tar.zst
gsoc2013-evolution-e3dda0436d981d9632a529aa5ca7230cb343694b.zip
Migrate the local store from mbox to maildir format
Diffstat (limited to 'mail/e-mail-local.c')
-rw-r--r--mail/e-mail-local.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mail/e-mail-local.c b/mail/e-mail-local.c
index 1e7e66d942..d2bb42171d 100644
--- a/mail/e-mail-local.c
+++ b/mail/e-mail-local.c
@@ -57,7 +57,7 @@ e_mail_local_init (EMailSession *session,
g_return_if_fail (E_IS_MAIL_SESSION (session));
g_return_if_fail (data_dir != NULL);
- url = camel_url_new ("mbox:", NULL);
+ url = camel_url_new ("maildir:", NULL);
temp = g_build_filename (data_dir, "local", NULL);
camel_url_set_path (url, temp);
g_free (temp);
@@ -84,9 +84,13 @@ e_mail_local_init (EMailSession *session,
/* FIXME camel_store_get_folder() may block. */
default_local_folders[ii].folder_uri = folder_uri;
- default_local_folders[ii].folder = camel_store_get_folder_sync (
- CAMEL_STORE (service), display_name,
- CAMEL_STORE_FOLDER_CREATE, NULL, NULL);
+ if (!strcmp (display_name, "Inbox"))
+ default_local_folders [ii].folder = camel_store_get_inbox_folder_sync (
+ CAMEL_STORE (service), NULL, NULL);
+ else
+ default_local_folders[ii].folder = camel_store_get_folder_sync (
+ CAMEL_STORE (service), display_name,
+ CAMEL_STORE_FOLDER_CREATE, NULL, NULL);
}
camel_url_free (url);