From 2331da257ff88d52ea029f902c974a858d2d725b Mon Sep 17 00:00:00 2001 From: 8 Date: Sun, 28 Oct 2001 13:06:27 +0000 Subject: add the folder name to the path when passing down to the subordinate 2001-10-28 * mail-local.c (mlf_rename): add the folder name to the path when passing down to the subordinate folder. svn path=/trunk/; revision=14295 --- mail/mail-local.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mail/mail-local.c') 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); -- cgit v1.2.3