dovecot: Deleting a mailbox was supposed to rename it to ..DOVEC...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 18 06:33:06 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/5d9e48e97f5a
changeset: 6064:5d9e48e97f5a
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 18 06:33:00 2007 +0300
description:
Deleting a mailbox was supposed to rename it to ..DOVECOT-TRASHED, not
.DOVECOT-TRASHED

diffstat:

1 file changed, 4 insertions(+), 2 deletions(-)
src/lib-storage/index/maildir/maildir-storage.c |    6 ++++--

diffs (23 lines):

diff -r dab02b1fc89d -r 5d9e48e97f5a src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c	Wed Jul 18 06:26:56 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-storage.c	Wed Jul 18 06:33:00 2007 +0300
@@ -624,6 +624,7 @@ maildir_get_unlink_dest(struct mailbox_l
 maildir_get_unlink_dest(struct mailbox_list *list, const char *name)
 {
 	const char *root_dir;
+	char sep;
 
 	if ((list->flags & MAILBOX_LIST_FLAG_FULL_FS_ACCESS) != 0 &&
 	    (*name == '/' || *name == '~'))
@@ -637,8 +638,9 @@ maildir_get_unlink_dest(struct mailbox_l
 
 	root_dir = mailbox_list_get_path(list, NULL,
 					 MAILBOX_LIST_PATH_TYPE_DIR);
-	return t_strdup_printf("%s/%c"MAILDIR_UNLINK_DIRNAME, root_dir,
-			       mailbox_list_get_hierarchy_sep(list));
+	sep = mailbox_list_get_hierarchy_sep(list);
+	return t_strdup_printf("%s/%c%c"MAILDIR_UNLINK_DIRNAME, root_dir,
+			       sep, sep);
 }
 
 static int


More information about the dovecot-cvs mailing list