Hi, I?m running dovecot 2.2.13 and I ran into a weird problem. A user migrated his mailboxes by letting users copy them from their old server to the new one through their MUA. All that went fine except for one very weird instance. The user is running Outlook 2010. The user has a sub-folder structure which dovecot places as dotted names beneath the Inbox. (E.g. Maildir/.my.sub.folders). After copying all data, that user came back to us and complained about missing mails in their folders. Apparently 3 of her folders disappeared. I found folders with similar (but different!) names in the dovecot storage but with no mails in them. After a while I noticed that something made dovecot create another level of nesting, like this: Maildir/.My.Folder/Subfolder In this case the Original folder structure was INBOX - My - Folder - Subfolder. When the user visited the subscription settings in her MUA she found the INBOX - My - Folder mailbox which was empty. The Subfolder was nowhere to be found. This appeared weird to me. I moved the Subfolder back directly under the Maildir directory and named it ?.My.Folder.Subfolder?. doveadm now lists this folder correctly. I could not find whether this is a known bug - so I?m letting you know. Maybe you can help understand what happened. Sounds like a weird server-side bug to me - this shouldn?t happen, right? Cheers, Christian ? Christian Theune ? ct at flyingcircus.io ? +49 345 219401 0 Flying Circus Internet Operations GmbH ? http://flyingcircus.io Forsterstra?e 29 ? 06112 Halle (Saale) ? Deutschland HR Stendal HRB 21169 ? Gesch?ftsf?hrer: Christian. Theune, Christian. Zagrodnick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 496 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://dovecot.org/pipermail/dovecot/attachments/20150302/f7c2f4d4/attachment-0001.sig>
> On 02 Mar 2015, at 14:46, Christian Theune <ct at flyingcircus.io> wrote: > > Hi, > > I?m running dovecot 2.2.13 and I ran into a weird problem. > > A user migrated his mailboxes by letting users copy them from their old server to the new one through their MUA. All that went fine except for one very weird instance. The user is running Outlook 2010. > > The user has a sub-folder structure which dovecot places as dotted names beneath the Inbox. (E.g. Maildir/.my.sub.folders). > After copying all data, that user came back to us and complained about missing mails in their folders. Apparently 3 of her folders disappeared. > > I found folders with similar (but different!) names in the dovecot storage but with no mails in them. After a while I noticed that something made dovecot create another level of nesting, like this: > > Maildir/.My.Folder/Subfolder > > In this case the Original folder structure was INBOX - My - Folder - Subfolder. When the user visited the subscription settings in her MUA she found the INBOX - My - Folder mailbox which was empty. The Subfolder was nowhere to be found. This appeared weird to me. I moved the Subfolder back directly under the Maildir directory and named it ?.My.Folder.Subfolder?. doveadm now lists this folder correctly.Actually, little correction. It didn?t fail to split a subfolder like this but some (to me unknown) character, maybe whitespace: So the original hierarchy was: ?INBOX? - ?Some Subfolder? which was turned into Maildir/.Some/Subfolder Christian ? Christian Theune ? ct at flyingcircus.io ? +49 345 219401 0 Flying Circus Internet Operations GmbH ? http://flyingcircus.io Forsterstra?e 29 ? 06112 Halle (Saale) ? Deutschland HR Stendal HRB 21169 ? Gesch?ftsf?hrer: Christian. Theune, Christian. Zagrodnick -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 496 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://dovecot.org/pipermail/dovecot/attachments/20150302/c4ee4850/attachment-0001.sig>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 2 Mar 2015, Christian Theune wrote:> Actually, little correction. It didn?t fail to split a subfolder like this but some (to me unknown) character, maybe whitespace: > > So the original hierarchy was: > > ?INBOX? - ?Some Subfolder? which was turned into > > Maildir/.Some/Subfolderis it even more possible, that the slash was in place before, too? E.g. "Jahr 2014/15" ? Please show us your config, because the Maildir code forbids slashes normally, any CREATE command should reject the request. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVPVh2nz1H7kL/d9rAQLXBQf+Mb2BKzHtGquEsDEGBMwlhO1EXZvYetXL UYydKiCXU3vWKoKMaKWfotqbyvBYUnPC4cxfO7XodQ+yYMPTDOEVWzwjT2ewYGg8 mDeYgSN5ks86yqKUDikZ9swVh/1zKeqZbV4vcKfkU7YfY2TmCtw2Fb1ubhLY9RUO mqLXpxnkr/0UreTbme2lqCeF8mTiKkSQ4dv5A2eSNFxPF6M0C+8qn66N37IQE5T1 hH+36r9nZbwUGJu4bECnmyZyXsEQ1R4ivRcGACaD2W3dmmoqMo790XQk6oyMgpIT 5Rq8+2CPPgoyMQMhyphVZrBwxjXSVVLsjnXpQkrA9HLV8GvbOX+mkg==pfT3 -----END PGP SIGNATURE-----