aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2010-11-23 23:17:15 +0800
committerChenthill Palanisamy <pchenthill@novell.com>2010-11-23 23:18:47 +0800
commit12c0f810e2267ba639f72c0a97acb651735d7389 (patch)
tree9b3921946926119930ae42d50bf0efba3dbd27d5 /mail
parente490db52f6c48d5c37884c2345386116474112ae (diff)
downloadgsoc2013-evolution-12c0f810e2267ba639f72c0a97acb651735d7389.tar
gsoc2013-evolution-12c0f810e2267ba639f72c0a97acb651735d7389.tar.gz
gsoc2013-evolution-12c0f810e2267ba639f72c0a97acb651735d7389.tar.bz2
gsoc2013-evolution-12c0f810e2267ba639f72c0a97acb651735d7389.tar.lz
gsoc2013-evolution-12c0f810e2267ba639f72c0a97acb651735d7389.tar.xz
gsoc2013-evolution-12c0f810e2267ba639f72c0a97acb651735d7389.tar.zst
gsoc2013-evolution-12c0f810e2267ba639f72c0a97acb651735d7389.zip
Maildir migration: allow subfolders for Inbox
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-migrate.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c
index 0fb0c3e5f5..ffecec17ee 100644
--- a/mail/e-mail-migrate.c
+++ b/mail/e-mail-migrate.c
@@ -760,24 +760,14 @@ check_local_store_migrate (void)
return ret;
}
-/* SubFolders of Inbox are renamed to Inbox_folder_name
- Inbox does not contain any subfolders in Maildir++ format
- Folder names with '.' are converted to '_'
-*/
+/* Folder names with '.' are converted to '_' */
static gchar *
sanitize_maildir_folder_name (gchar *folder_name)
{
gchar *maildir_folder_name;
- if (!g_ascii_strcasecmp (folder_name, "Inbox"))
- maildir_folder_name = g_strdup (".");
- else if (!g_ascii_strncasecmp (folder_name, "Inbox/", 6)) {
- maildir_folder_name = g_strconcat ("Inbox_", folder_name + 6, NULL);
- g_strdelimit (maildir_folder_name, ".", '_');
- } else {
- maildir_folder_name = g_strdup (folder_name);
- g_strdelimit (maildir_folder_name, ".", '_');
- }
+ maildir_folder_name = g_strdup (folder_name);
+ g_strdelimit (maildir_folder_name, ".", '_');
return maildir_folder_name;
}