Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/plugins/convert/convert-storage.c @ 5535:7aa36ab24c3b HEAD
Changed convert_skip_dotfiles to convert_skip_dotdirs.
convert_skip_broken_mailboxes=yes is enough to skip non-mbox dotfiles.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 10 Apr 2007 17:37:19 +0300 |
parents | c69786bd2017 |
children | 54babfeab440 |
comparison
equal
deleted
inserted
replaced
5534:c69786bd2017 | 5535:7aa36ab24c3b |
---|---|
136 struct mailbox *srcbox, *destbox; | 136 struct mailbox *srcbox, *destbox; |
137 int ret = 0; | 137 int ret = 0; |
138 | 138 |
139 if ((info->flags & MAILBOX_NONEXISTENT) != 0) | 139 if ((info->flags & MAILBOX_NONEXISTENT) != 0) |
140 return 0; | 140 return 0; |
141 if (*info->name == '.' && set->skip_dotfiles) | |
142 return 0; | |
143 | 141 |
144 name = strcasecmp(info->name, "INBOX") == 0 ? "INBOX" : info->name; | 142 name = strcasecmp(info->name, "INBOX") == 0 ? "INBOX" : info->name; |
145 if ((info->flags & MAILBOX_NOSELECT) != 0) { | 143 if ((info->flags & MAILBOX_NOSELECT) != 0) { |
146 /* \NoSelect mailbox, so it's probably a "directory" */ | 144 /* \NoSelect mailbox, so it's probably a "directory" */ |
145 if (*info->name == '.' && set->skip_dotdirs) | |
146 return 0; | |
147 | |
147 dest_name = mailbox_name_convert(dest_storage, source_storage, | 148 dest_name = mailbox_name_convert(dest_storage, source_storage, |
148 set, name); | 149 set, name); |
149 if (mail_storage_mailbox_create(dest_storage, dest_name, | 150 if (mail_storage_mailbox_create(dest_storage, dest_name, |
150 TRUE) < 0) { | 151 TRUE) < 0) { |
151 i_error("Mailbox conversion: Couldn't create mailbox " | 152 i_error("Mailbox conversion: Couldn't create mailbox " |