aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-spool-folder.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-09-26 13:34:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-09-26 13:34:10 +0800
commita007d6d2084df436d5f1fa2b6804064c6e7c62e0 (patch)
treeb74d0961cc17c7935369ca6724785eaef1adce4b /camel/providers/local/camel-spool-folder.c
parente45b3e48281defcf3df2761b4bf3ce0c3b2d5357 (diff)
downloadgsoc2013-evolution-a007d6d2084df436d5f1fa2b6804064c6e7c62e0.tar.gz
gsoc2013-evolution-a007d6d2084df436d5f1fa2b6804064c6e7c62e0.tar.zst
gsoc2013-evolution-a007d6d2084df436d5f1fa2b6804064c6e7c62e0.zip
Implement FOLDER_CREATE flag. (scan_dir): Dont free name on exception, its
2002-09-26 Not Zed <NotZed@Ximian.com> * providers/local/camel-spool-store.c (get_folder): Implement FOLDER_CREATE flag. (scan_dir): Dont free name on exception, its alloca'd. (scan_dir): If we start scanning from a file, just add that directly. (scan_dir): Allow empty files to also show up in folder list, as well as files starting with "From ". * providers/local/camel-spool-folder.c (camel_spool_folder_new): Check folder != NULL before writing to it. * providers/local/camel-local-store.c (create_folder): Handle a parent of NULL for creating top-level dirs. Part of #31186. svn path=/trunk/; revision=18230
Diffstat (limited to 'camel/providers/local/camel-spool-folder.c')
-rw-r--r--camel/providers/local/camel-spool-folder.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/camel/providers/local/camel-spool-folder.c b/camel/providers/local/camel-spool-folder.c
index 55df340c26..8118468a60 100644
--- a/camel/providers/local/camel-spool-folder.c
+++ b/camel/providers/local/camel-spool-folder.c
@@ -122,9 +122,10 @@ camel_spool_folder_new(CamelStore *parent_store, const char *full_name, guint32
flags &= CAMEL_STORE_FOLDER_BODY_INDEX;
folder = (CamelFolder *)camel_local_folder_construct((CamelLocalFolder *)folder, parent_store, full_name, flags, ex);
-
- if (camel_url_get_param(((CamelService *)parent_store)->url, "xstatus"))
- camel_mbox_summary_xstatus((CamelMboxSummary *)folder->summary, TRUE);
+ if (folder) {
+ if (camel_url_get_param(((CamelService *)parent_store)->url, "xstatus"))
+ camel_mbox_summary_xstatus((CamelMboxSummary *)folder->summary, TRUE);
+ }
return folder;
}