( cvs diff -u -r 1.1.2.9 -r 1.1.2.10 doc/man/claws-mail.1; cvs diff -u -r 1.115.2.249 -r 1.115.2.250 src/main.c; cvs diff -u -r 1.7.2.20 -r 1.7.2.21 src/main.h; cvs diff -u -r 1.149.2.106 -r 1.149.2.107 src/inc.c; cvs diff -u -r 1.150.2.123 -r 1.150.2.124 src/procmsg.c; cvs diff -u -r 1.4.2.83 -r 1.4.2.84 src/gtk/about.c; ) > 3.8.0cvs52.patchset
( cvs diff -u -r 1.1.4.31 -r 1.1.4.32 src/gtk/progressdialog.c; ) > 3.8.0cvs53.patchset
( cvs diff -u -r 1.204.2.210 -r 1.204.2.211 src/prefs_common.c; cvs diff -u -r 1.103.2.138 -r 1.103.2.139 src/prefs_common.h; cvs diff -u -r 1.96.2.241 -r 1.96.2.242 src/textview.c; cvs diff -u -r 1.12.2.31 -r 1.12.2.32 src/textview.h; ) > 3.8.0cvs54.patchset
+( cvs diff -u -r 1.79.2.72 -r 1.79.2.73 src/mh.c; ) > 3.8.0cvs55.patchset
static gint mh_create_tree(Folder *folder)
{
- gchar *rootpath;
+ gchar *rootpath, *f;
cm_return_val_if_fail(folder != NULL, -1);
rootpath = LOCAL_FOLDER(folder)->rootpath;
MAKE_DIR_IF_NOT_EXIST(rootpath);
CHDIR_RETURN_VAL_IF_FAIL(rootpath, -1);
- MAKE_DIR_IF_NOT_EXIST(INBOX_DIR);
- MAKE_DIR_IF_NOT_EXIST(OUTBOX_DIR);
- MAKE_DIR_IF_NOT_EXIST(QUEUE_DIR);
- MAKE_DIR_IF_NOT_EXIST(DRAFT_DIR);
- MAKE_DIR_IF_NOT_EXIST(TRASH_DIR);
+
+ /* Create special directories as needed */
+ if (folder->inbox != NULL &&
+ folder->inbox->path != NULL)
+ f = folder->inbox->path;
+ else
+ f = INBOX_DIR;
+ MAKE_DIR_IF_NOT_EXIST(f);
+
+ if (folder->outbox != NULL &&
+ folder->outbox->path != NULL)
+ f = folder->outbox->path;
+ else
+ f = OUTBOX_DIR;
+ MAKE_DIR_IF_NOT_EXIST(f);
+
+ if (folder->draft != NULL &&
+ folder->draft->path != NULL)
+ f = folder->draft->path;
+ else
+ f = DRAFT_DIR;
+ MAKE_DIR_IF_NOT_EXIST(f);
+
+ if (folder->queue != NULL &&
+ folder->queue->path != NULL)
+ f = folder->queue->path;
+ else
+ f = QUEUE_DIR;
+ MAKE_DIR_IF_NOT_EXIST(f);
+
+ if (folder->trash != NULL &&
+ folder->trash->path != NULL)
+ f = folder->trash->path;
+ else
+ f = TRASH_DIR;
+ MAKE_DIR_IF_NOT_EXIST(f);
return 0;
}