[Dovecot] Folder renaming oddities.

Tan Shao Yi tansy at pacific.net.sg
Tue Oct 2 07:53:01 EEST 2007


Hello,

Sorry, I forgot to mention this is dovecot 1.0.4.

Cheers.


Tan Shao Yi wrote:
> Hi Timo,
> 
> We are observing some weird behaviour when we try to rename an inferior 
> folder, followed by the superior folder.
> 
> These folders have an asterisk in the name.
> 
> * LIST (\HasChildren)   "." "*Own Family"
> * LIST (\HasChildren)   "." "*Own Family.Tour"
> * LIST (\HasNoChildren) "." "*Own Family.Maid"
> * LIST (\HasNoChildren) "." "*Own Family.Tour.NZ"
> a OK List completed.
> 
> a rename "*Own Family.Tour.NZ" "Own Family.Tour.NZ"
> a OK Rename completed.
> a LIST "" *
> * LIST (\HasChildren)   "." "*Own Family"
> * LIST (\HasNoChildren) "." "*Own Family.Tour"
> * LIST (\HasNoChildren) "." "*Own Family.Maid"
> * LIST (\HasNoChildren) "." "Own Family.Tour.NZ"
> a OK List completed.
> 
> a rename "*Own Family.Tour" "Own Family.Tour"
> a rename "*Own Family.Tour" "Own Family.Tour"a NO Internal error 
> occurred. Refer to server log for more information. [2007-10-02 11:02:59]
> a LIST "" *
> * LIST (\HasChildren)   "." "*Own Family"
> * LIST (\HasNoChildren) "." "*Own Family.Maid"
> * LIST (\HasChildren)   "." "Own Family.Tour"
> * LIST (\HasNoChildren) "." "Own Family.Tour.NZ"
> 
> 
> dovecot: Oct 02 11:02:59 Error: IMAP(XXX): rename(/XXX/Maildir/.*Own 
> Family.TourNZ, /XXX/Maildir/.Own Family.TourNZ) failed: No such file or 
> directory
> 
> 
> It seems that the renaming of the folder succeeds, though the "a NO 
> Internal error occurred" is reported.
> 
> However, when the folders do not have an asterisk in the name.
> 
> * LIST (\HasChildren)   "." "Own Family"
> * LIST (\HasNoChildren) "." "Own Family.Maid"
> * LIST (\HasChildren)   "." "Own Family.Tour"
> * LIST (\HasNoChildren) "." "Own Family.Tour.NZ"
> 
> a rename "Own Family.Tour.NZ" "*Own Family.Tour.NZ"
> a OK Rename completed.
> 
> a rename "Own Family.Tour" "*Own Family.Tour"
> a OK Rename completed.
> 
> a LIST "" *
> * LIST (\HasChildren)   "." "Own Family"
> * LIST (\HasNoChildren) "." "Own Family.Maid"
> * LIST (\HasChildren)   "." "*Own Family.Tour"
> * LIST (\HasNoChildren) "." "*Own Family.Tour.NZ"
> 
> The rename operation completes successfully with no error.
> 
> Is there something that I am doing wrong?
> 
> P.S., Will it be possible to also request the mail-log plugin to log 
> rename operations too? :)
> 
> Thanking in advance.
> 
> Cheers,
> Tan Shao Yi



More information about the dovecot mailing list