Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5556:54babfeab440 HEAD
Don't create INBOX mailbox, so with maildir the maildirfolder file won't be
created there.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 12 Apr 2007 20:09:32 +0300 |
parents | 9f1d15aa9fce |
children | 657406346288 |
files | src/plugins/convert/convert-storage.c |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/convert/convert-storage.c Thu Apr 12 19:31:10 2007 +0300 +++ b/src/plugins/convert/convert-storage.c Thu Apr 12 20:09:32 2007 +0300 @@ -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,