aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author8 <NotZed@Ximian.com>2001-10-28 21:06:27 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-28 21:06:27 +0800
commit2331da257ff88d52ea029f902c974a858d2d725b (patch)
tree45a6ea1285253f12c68eba300ed0c3c321b25a03
parent4b8e2db48961f3bc7becd6132adefd9904ae6a7a (diff)
downloadgsoc2013-evolution-2331da257ff88d52ea029f902c974a858d2d725b.tar
gsoc2013-evolution-2331da257ff88d52ea029f902c974a858d2d725b.tar.gz
gsoc2013-evolution-2331da257ff88d52ea029f902c974a858d2d725b.tar.bz2
gsoc2013-evolution-2331da257ff88d52ea029f902c974a858d2d725b.tar.lz
gsoc2013-evolution-2331da257ff88d52ea029f902c974a858d2d725b.tar.xz
gsoc2013-evolution-2331da257ff88d52ea029f902c974a858d2d725b.tar.zst
gsoc2013-evolution-2331da257ff88d52ea029f902c974a858d2d725b.zip
add the folder name to the path when passing down to the subordinate
2001-10-28 <NotZed@Ximian.com> * mail-local.c (mlf_rename): add the folder name to the path when passing down to the subordinate folder. svn path=/trunk/; revision=14295
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-local.c10
2 files changed, 10 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 8cd958683a..c83811351f 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-10-28 <NotZed@Ximian.com>
+ * mail-local.c (mlf_rename): add the folder name to the path when
+ passing down to the subordinate folder.
+
* folder-browser-ui.c (fbui_sensitize_timeout): Remove uic, kill
dumb warning.
diff --git a/mail/mail-local.c b/mail/mail-local.c
index 3b601005b2..c2f1ad87f7 100644
--- a/mail/mail-local.c
+++ b/mail/mail-local.c
@@ -58,7 +58,7 @@
#include "mail-vfolder.h"
#include "mail-ops.h"
-#define d(x)
+#define d(x)
/* sigh, required for passing around to some functions */
static GNOME_Evolution_Storage local_corba_storage = CORBA_OBJECT_NIL;
@@ -410,8 +410,12 @@ mlf_rename(CamelFolder *folder, const char *new)
MailLocalFolder *mlf = (MailLocalFolder *)folder;
/* first, proxy it down */
- if (mlf->real_folder)
- camel_folder_rename(mlf->real_folder, new);
+ if (mlf->real_folder) {
+ char *mbox = g_strdup_printf("%s/%s", new, mlf->meta->name);
+
+ camel_folder_rename(mlf->real_folder, mbox);
+ g_free(mbox);
+ }
/* Then do our stuff */
g_free(mlf->real_path);