[evolution] e_mail_migrate(): Remove directory creation code.



commit 011747a5f75840e440ddb06a08ea5957e74e8cab
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Dec 13 16:52:01 2012 -0500

    e_mail_migrate(): Remove directory creation code.
    
    e_shell_backend_get_data_dir() already creates the user's data directory
    for mail, so there's no need to try and create the directory again.
    
    This eliminates the only usage of the E_SHELL_MIGRATE_ERROR domain.

 mail/e-mail-migrate.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c
index 24335c9..30683f4 100644
--- a/mail/e-mail-migrate.c
+++ b/mail/e-mail-migrate.c
@@ -315,18 +315,7 @@ e_mail_migrate (EShellBackend *shell_backend,
 	struct stat st;
 	const gchar *data_dir;
 
-	/* make sure ~/.evolution/mail exists */
 	data_dir = e_shell_backend_get_data_dir (shell_backend);
-	if (g_stat (data_dir, &st) == -1) {
-		if (errno != ENOENT || g_mkdir_with_parents (data_dir, 0700) == -1) {
-			g_set_error (
-				error, E_SHELL_MIGRATE_ERROR,
-				E_SHELL_MIGRATE_ERROR_FAILED,
-				_("Unable to create local mail folders at "
-				"'%s': %s"), data_dir, g_strerror (errno));
-			return FALSE;
-		}
-	}
 
 	if (major == 0)
 		return emm_setup_initial (data_dir);



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