[dovecot-cvs] dovecot/src/plugins/convert convert-storage.c, 1.13, 1.14
tss at dovecot.org
tss at dovecot.org
Mon Mar 12 14:35:30 EET 2007
Update of /var/lib/cvs/dovecot/src/plugins/convert
In directory talvi:/tmp/cvs-serv22167
Modified Files:
convert-storage.c
Log Message:
Mailbox name conversion wasn't done for directories.
Index: convert-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/convert/convert-storage.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- convert-storage.c 6 Mar 2007 20:06:23 -0000 1.13
+++ convert-storage.c 12 Mar 2007 12:35:27 -0000 1.14
@@ -137,9 +137,12 @@
name = strcasecmp(info->name, "INBOX") == 0 ? "INBOX" : info->name;
if ((info->flags & MAILBOX_NOSELECT) != 0) {
/* \NoSelect mailbox, so it's probably a "directory" */
- if (mail_storage_mailbox_create(dest_storage, name, TRUE) < 0) {
+ dest_name = mailbox_name_convert(dest_storage, source_storage,
+ name);
+ if (mail_storage_mailbox_create(dest_storage, dest_name,
+ TRUE) < 0) {
i_error("Mailbox conversion: Couldn't create mailbox "
- "directory %s", name);
+ "directory %s", dest_name);
return -1;
}
return 0;
More information about the dovecot-cvs
mailing list