diff options
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 10 | ||||
-rw-r--r-- | camel/providers/mbox/camel-mbox-store.c | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index ad899090dc..593f5699eb 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -388,13 +388,14 @@ _set_name (CamelFolder *folder, const gchar *name, CamelException *ex) static gboolean _exists (CamelFolder *folder, CamelException *ex) { - CamelMboxFolder *mbox_folder = CAMEL_MBOX_FOLDER(folder); + CamelMboxFolder *mbox_folder; struct stat stat_buf; gint stat_error; gboolean exists; CAMEL_LOG_FULL_DEBUG ("Entering CamelMboxFolder::exists\n"); - + + /* check if the folder object exists */ if (!folder) { camel_exception_set (ex, @@ -403,6 +404,9 @@ _exists (CamelFolder *folder, CamelException *ex) return FALSE; } + mbox_folder = CAMEL_MBOX_FOLDER(folder); + + /* check if the mbox file path is determined */ if (!mbox_folder->folder_file_path) { camel_exception_set (ex, @@ -492,7 +496,7 @@ _create (CamelFolder *folder, CamelException *ex) /* get the paths of what we need to create */ folder_file_path = mbox_folder->folder_file_path; - folder_dir_path = mbox_folder->folder_file_path; + folder_dir_path = mbox_folder->folder_dir_path; if (!(folder_file_path || folder_dir_path)) { camel_exception_set (ex, diff --git a/camel/providers/mbox/camel-mbox-store.c b/camel/providers/mbox/camel-mbox-store.c index 9c5e889aa7..76ceed282a 100644 --- a/camel/providers/mbox/camel-mbox-store.c +++ b/camel/providers/mbox/camel-mbox-store.c @@ -21,6 +21,10 @@ * USA */ + +#include <config.h> +#include "camel-log.h" + #include "camel-mbox-store.h" #include "camel-mbox-folder.h" #include "camel-exception.h" @@ -104,12 +108,14 @@ _get_folder (CamelStore *store, const gchar *folder_name, CamelException *ex) /* call the standard routine for that when */ /* it is done ... */ + CAMEL_LOG_FULL_DEBUG ("Entering CamelMboxStore::get_folder\n"); new_mbox_folder = gtk_type_new (CAMEL_MBOX_FOLDER_TYPE); new_folder = CAMEL_FOLDER (new_mbox_folder); CF_CLASS (new_folder)->init_with_store (new_folder, store, ex); CF_CLASS (new_folder)->set_name (new_folder, folder_name, ex); - + CAMEL_LOG_FULL_DEBUG ("Leaving CamelMboxStore::get_folder\n"); + return new_folder; } |