We're using doveadm/dsync/imapc to migrate accounts from Courier to Dovecot 2.2.20. On the source-server some user have folder names including a "%" in their name. Looks like doveadm isn't able to handle that folder names. I always stops with: dsync(testtest): Error: Failed to access mailbox INBOX.Test%TEST: Mailbox does not exist, or must be subscribed to. Peer -- Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin http://www.heinlein-support.de Tel: 030 / 405051-42 Fax: 030 / 405051-19 Zwangsangaben lt. ?35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Gesch?ftsf?hrer: Peer Heinlein -- Sitz: Berlin
> On 06 Jan 2016, at 18:52, Peer Heinlein <p.heinlein at heinlein-support.de> wrote: > > > We're using doveadm/dsync/imapc to migrate accounts from Courier to > Dovecot 2.2.20. > > On the source-server some user have folder names including a "%" in > their name. > > Looks like doveadm isn't able to handle that folder names. I always > stops with: > > dsync(testtest): Error: Failed to access mailbox INBOX.Test%TEST: > Mailbox does not exist, or must be subscribed to.Hmm. The attached patch fixes it, but I'm not sure yet if it breaks something else. Need to create some automated tests for imapc handling these various special characters.. -------------- next part -------------- A non-text attachment was scrubbed... Name: diff Type: application/octet-stream Size: 489 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20160108/ce2ba480/attachment.obj> -------------- next part --------------
On 01/08/2016 05:49 PM, Timo Sirainen wrote:> >> On 06 Jan 2016, at 18:52, Peer Heinlein <p.heinlein at heinlein-support.de> wrote: >> >> >> We're using doveadm/dsync/imapc to migrate accounts from Courier to >> Dovecot 2.2.20. >> >> On the source-server some user have folder names including a "%" in >> their name. >> >> Looks like doveadm isn't able to handle that folder names. I always >> stops with: >> >> dsync(testtest): Error: Failed to access mailbox INBOX.Test%TEST: >> Mailbox does not exist, or must be subscribed to. > > Hmm. The attached patch fixes it, but I'm not sure yet if it breaks something else. Need to create some automated tests for imapc handling these various special characters..Looks like it was a more complicated change to get it working correctly for all cases. These should fix everything: https://github.com/dovecot/core/commit/a4e2101473cfd7ce960fc49b3ce097c3f89ec2ad https://github.com/dovecot/core/commit/f97b503210435b74de3b26cba07315cbc9ea1dfc https://github.com/dovecot/core/commit/6e2bb07ff164bbac054cc53a4b4ca0d8aee909d1