[evolution] Maildir migration: allow subfolders for Inbox



commit 12c0f810e2267ba639f72c0a97acb651735d7389
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Nov 23 20:47:15 2010 +0530

    Maildir migration: allow subfolders for Inbox

 mail/e-mail-migrate.c |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c
index 0fb0c3e..ffecec1 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;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]