[dovecot-cvs] dovecot/src/plugins/convert convert-storage.c, 1.22, 1.23
tss at dovecot.org
tss at dovecot.org
Thu Apr 12 20:09:34 EEST 2007
Update of /var/lib/cvs/dovecot/src/plugins/convert
In directory talvi:/tmp/cvs-serv5964
Modified Files:
convert-storage.c
Log Message:
Don't create INBOX mailbox, so with maildir the maildirfolder file won't be
created there.
Index: convert-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/convert/convert-storage.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- convert-storage.c 10 Apr 2007 14:37:19 -0000 1.22
+++ convert-storage.c 12 Apr 2007 17:09:32 -0000 1.23
@@ -173,11 +173,15 @@
/* Create and open the destination mailbox. */
dest_name = mailbox_name_convert(dest_storage, source_storage,
set, name);
- if (mail_storage_mailbox_create(dest_storage, dest_name, FALSE) < 0) {
- i_error("Mailbox conversion: Couldn't create mailbox %s: %s",
- dest_name, storage_error(dest_storage));
- mailbox_close(&srcbox);
- return -1;
+ if (strcmp(dest_name, "INBOX") != 0) {
+ if (mail_storage_mailbox_create(dest_storage, dest_name,
+ FALSE) < 0) {
+ i_error("Mailbox conversion: "
+ "Couldn't create mailbox %s: %s",
+ dest_name, storage_error(dest_storage));
+ mailbox_close(&srcbox);
+ return -1;
+ }
}
destbox = mailbox_open(dest_storage, dest_name, NULL,
More information about the dovecot-cvs
mailing list