On 24 Jan 2016, at 17:28, Keith Edmunds <kae@midnighthax.com> wrote:
I have reported a bug to Claws Mail (http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3601); however, I see some behaviour from Dovecot that looks odd to me.
Background: I am trying to copy a folder to another part of the IMAP folder hierarchy. The destination parent folder is ACL protected; I have lirwstpeak rights. Claws initially tries to create the destination folder and then copy the mails from the source to destination.
The destination parent folder is 'public/accounts'; the folder being moved there is 'test' and 'public/accounts/test' does not exist at the start of the process. This is from Dovecot's rawlog:
11 LIST "" "public/accounts/test" 11 OK List completed. 12 CREATE "public/accounts/test" 12 OK Create completed. 13 LIST "" "public/accounts/test" 13 OK List completed. 14 SUBSCRIBE "public/accounts/test" 14 NO Mailbox doesn't exist: public/accounts/test 15 UID COPY 1:2 "public/accounts/test" 15 NO [TRYCREATE] Mailbox doesn't exist: public/accounts/test
What I don't understand: the response to command 12 suggests that the destination folder has been created; the response to commands 14 and 15 suggest it hasn't.
Looks like a bug.
Is there some kind of race condition here - or have I just misunderstood how this should work?
Running on ext4 filesystem; dovecot -n:
# 2.2.13: /etc/dovecot/dovecot.conf
I attempted to reproduce it, but it worked fine with v2.2.21. So maybe upgrading alone helps.