X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-local-folder-info.c;h=9c646a73b5be420fa2fbb550199fbf92cdcac39f;hb=398d45654eaaefd1a20631a343192f68a6025dcd;hp=f0668095192a06cbebe042fa6bb2852ccfcbf646;hpb=96d9a8c787c693406a0f26e3d3a00065c7236fe5;p=modest diff --git a/src/modest-local-folder-info.c b/src/modest-local-folder-info.c index f066809..9c646a7 100644 --- a/src/modest-local-folder-info.c +++ b/src/modest-local-folder-info.c @@ -105,28 +105,28 @@ modest_local_folder_info_get_type_display_name (TnyFolderType type) gchar * -modest_local_folder_info_get_maildir_path (void) +modest_local_folder_info_get_maildir_path (const gchar* location_filepath) { - return g_build_filename (g_get_home_dir(), + return g_build_filename (location_filepath ? location_filepath : g_get_home_dir(), MODEST_DIR, MODEST_LOCAL_FOLDERS_MAILDIR, NULL); } -gchar *modest_per_account_local_outbox_folder_info_get_maildir_path (TnyAccount *account) +gchar *modest_per_account_local_outbox_folder_info_get_maildir_path (const gchar* account_name) { /* This directory should contain an "outbox" child directory: */ return g_build_filename (g_get_home_dir(), MODEST_DIR, MODEST_PER_ACCOUNT_LOCAL_OUTBOX_FOLDERS_MAILDIR, - tny_account_get_id (account), + account_name, NULL); } -gchar *modest_per_account_local_outbox_folder_info_get_maildir_path_to_outbox_folder (TnyAccount *account) +gchar *modest_per_account_local_outbox_folder_info_get_maildir_path_to_outbox_folder (const gchar* account_name) { gchar *path_to_account_folder = - modest_per_account_local_outbox_folder_info_get_maildir_path(account); + modest_per_account_local_outbox_folder_info_get_maildir_path(account_name); if (!path_to_account_folder) return NULL;