aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-local-storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-local-storage.c')
-rw-r--r--shell/e-local-storage.c30
1 files changed, 27 insertions, 3 deletions
diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c
index 8c263d1e76..3b7caca0e4 100644
--- a/shell/e-local-storage.c
+++ b/shell/e-local-storage.c
@@ -218,8 +218,9 @@ load_all_folders (ELocalStorage *local_storage)
base_path = e_local_storage_get_base_path (local_storage);
- if (! e_path_find_folders (base_path, load_folder, local_storage))
- return FALSE;
+ /* Ignore errors, so we set up the local storage even if there is stale
+ data that we don't understand in ~/evolution. */
+ e_path_find_folders (base_path, load_folder, local_storage);
setup_stock_folders (local_storage);
@@ -817,6 +818,28 @@ struct _XferData {
};
typedef struct _XferData XferData;
+static int nesting = 0;
+
+#define PRINT_ENTER() \
+ while (0) { \
+ int _i; \
+ nesting ++; \
+ \
+ for (_i = 0; _i < nesting; _i ++) \
+ putchar (' '); \
+ printf ("Enter %s", __FUNCTION__); \
+ }
+
+#define PRINT_EXIT() \
+ while (0) { \
+ int _i; \
+ \
+ for (_i = 0; _i < nesting; _i ++) \
+ putchar (' '); \
+ printf ("Exit %s", __FUNCTION__); \
+ nesting --; \
+ }
+
static void
async_xfer_folder_step (ELocalStorage *local_storage,
const char *source_path,
@@ -831,6 +854,7 @@ async_xfer_folder_step (ELocalStorage *local_storage,
char *physical_path;
char *physical_uri;
+ PRINT_ENTER ();
priv = local_storage->priv;
source_folder = e_storage_get_folder (E_STORAGE (local_storage), source_path);
@@ -855,8 +879,8 @@ async_xfer_folder_step (ELocalStorage *local_storage,
remove_source,
component_client_callback,
component_client_callback_data);
-
g_free (physical_uri);
+ PRINT_EXIT ();
}
static void