Closed Bug 561688 Opened 14 years ago Closed 14 years ago

Thunderbird fails to rename IMAP folder (two or more non-continuous space characters in folder name, with delimiter=".")

Categories

(Thunderbird :: Folder and Message Lists, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: bugzilla, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [closeme 2011-01-10])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.4) Gecko/20100413 Firefox/3.6.4 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4

On attempting to rename an IMAP folder from the folder list view, I get the message "The current command did not succeed. The mail server responded:Mailbox exists".

The IMAP log (attached) seems to suggests there is a null byte in the folder name sent and Thunderbird is sending the rename command incorrectly to the mail server.

I'm using Dovecot 1.1.2

Reproducible: Always

Steps to Reproduce:
1. Right click folder, select rename
2. Enter new name (by appending text to original name)

Actual Results:  
Receive error message "The current command did not succeed. The mail server responded:Mailbox exists".

Expected Results:  
Folder is renamed

3680[4dc3240]: 54da800:server.headsnet.net:S-Shows 2010.Venue 39 (Radisson).Space 1.Wavelength:CreateNewLineFromSocket: 7 OK Idle completed.
3680[4dc3240]: 54da800:server.headsnet.net:S-Shows 2010.Venue 39 (Radisson).Space 1.Wavelength:ProcessCurrentURL: entering
3680[4dc3240]: 54da800:server.headsnet.net:S-Shows 2010.Venue 39 (Radisson).Space 1.Wavelength:ProcessCurrentURL:imap://production@server.headsnet.net:993/rename%3E.Shows%202010.Venue%2039%20%28Radisson%29.Space%201.Wavelength%3E.Shows%202010.Venue%2039%20(Radisson).Space%201.Wavelength%00.Wavelength%20TC%20-%20AAAAA%20BBBBBB:  = currentUrl
3680[4dc3240]: 54da800:server.headsnet.net:S-Shows 2010.Venue 39 (Radisson).Space 1.Wavelength:SendData: 8 lsub "" "Shows 2010.Venue 39 (Radisson).Space 1.Wavelength.*"
3680[4dc3240]: ReadNextLine [stream=5d65b08 nb=22 needmore=0]
3680[4dc3240]: 54da800:server.headsnet.net:S-Shows 2010.Venue 39 (Radisson).Space 1.Wavelength:CreateNewLineFromSocket: 8 OK Lsub completed.
3680[4dc3240]: 54da800:server.headsnet.net:S-Shows 2010.Venue 39 (Radisson).Space 1.Wavelength:SendData: 9 close
3680[4dc3240]: ReadNextLine [stream=5d65b08 nb=23 needmore=0]
3680[4dc3240]: 54da800:server.headsnet.net:S-Shows 2010.Venue 39 (Radisson).Space 1.Wavelength:CreateNewLineFromSocket: 9 OK Close completed.
3680[4dc3240]: 54da800:server.headsnet.net:A:SendData: 10 rename "Shows 2010.Venue 39 (Radisson).Space 1.Wavelength" "Shows 2010.Venue 39 (Radisson).Space 1.Wavelength"
3680[4dc3240]: ReadNextLine [stream=5d65b08 nb=23 needmore=0]
3680[4dc3240]: 54da800:server.headsnet.net:A:CreateNewLineFromSocket: 10 NO Mailbox exists.
> 3680[4dc3240]: 54da800:server.headsnet.net:
> S-Shows 2010.Venue 39 (Radisson).Space 1.Wavelength:ProcessCurrentURL:
> imap://production@server.headsnet.net:993/rename%3E.Shows%202010.Venue%2039%20%28Radisson%29.Space%201.Wavelength%3E.Shows%202010.Venue%2039%20(Radisson).Space%201.Wavelength%00.Wavelength%20TC%20-%20AAAAA%20BBBBBB:
> = currentUrl

(current folder)
>     Shows 2010.Venue 39 (Radisson).Space 1.Wavelength
(old name part, url format, so escaped)
> %3E.Shows%202010.Venue%2039%20%28Radisson%29.Space%201.Wavelength
(new name part, url format, so escaped)
> %3E.Shows%202010.Venue%2039%20(Radisson).Space%201.Wavelength%00.Wavelength%20TC%20-%20AAAAA%20BBBBBB

You tried to rename Wavelength under next folder structure to  "Wavelength?.Wavelength TC - AAAAA BBBBBB"?
Or "Wavelength?/Wavelength TC - AAAAA BBBBBB" 
If so, what charater do you specified at "?" part(corresponds to %00 part in escaped url format)?  

Or you tried to rename Wavelength under next folder structure to "Wavelength TC - AAAAA BBBBBB"? 

  Shows 2010
    Venue 39 (Radisson)
      Space 1
        Wavelength

> 10 rename "Shows 2010.Venue 39 (Radisson).Space 1.Wavelength"
>           "Shows 2010.Venue 39 (Radisson).Space 1.Wavelength"
> 10 NO Mailbox exists.

It looks cut-off at %00 in escaped format uri.
It looks same problem as Bug 380655. Setting dependency.
Depends on: 380655
If same problem as Bug 380655, workaround is rename of "Venue 39 (Radisson)" to "Venue 39(Radisson)" or some others which doesn't have more than one space in name. Does it work?
Ian, do you solve the problem? Without any answer from your side in 30 days, this bug will be closed .
Whiteboard: [closeme 2011-01-10]
Summary: Thunderbird fails to rename IMAP folder → Thunderbird fails to rename IMAP folder (two or more non-continuous space characters in folder name, with delimiter=".")
RESOLVED INCOMPLETE due to lack of response to previous comment. If you feel this change was made in error, please respond to this bug with your reasons why.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.