diff -r 70cc4b8884ef src/plugins/listescape/listescape-plugin.c
--- a/src/plugins/listescape/listescape-plugin.c	Tue Jul 31 19:42:03 2007 +0100
+++ b/src/plugins/listescape/listescape-plugin.c	Fri Aug 31 19:21:05 2007 +0100
@@ -160,10 +160,16 @@ listescape_mailbox_rename(struct mail_st
 {
 	struct listescape_mail_storage *mstorage =
 		LIST_ESCAPE_CONTEXT(storage);
+	char saved_hierarchy_sep;
+	int ret;
 
 	oldname = list_escape(oldname);
 	newname = list_escape(newname);
-	return mstorage->super.mailbox_rename(storage, oldname, newname);
+	saved_hierarchy_sep = storage->hierarchy_sep;
+	storage->hierarchy_sep = REAL_SEP;
+	ret = mstorage->super.mailbox_rename(storage, oldname, newname);
+	storage->hierarchy_sep = saved_hierarchy_sep;
+	return ret;
 }
 
 static int listescape_set_subscribed(struct mail_storage *storage,
