diff options
-rw-r--r-- | mail/ChangeLog | 3 | ||||
-rw-r--r-- | mail/mail-local.c | 10 |
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); |