Open Bug 470350 Opened 16 years ago Updated 2 months ago

Tbird cannot delete folder if it is currently open, and ignores IMAP error message (UW-IMAP, MIX mailbox format)

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Linux
defect

Tracking

(Not tracked)

People

(Reporter: advax, Unassigned)

Details

Attachments

(1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
Build Identifier: 2.0.0.18

If a folder is open (viewing message list), and a user tries to delete it, it appears to be deleted but reappears when thunderbird is re-started.

Reproducible: Always

Steps to Reproduce:
1.Select a folder for viewing from UW IMAP server
2. Right-click folder in "folders" panel
3. Select "delete"
4. Check "OK" in confirmation window
5. Exit Thunderbird
6. Re-start Thunderbird
7. List folders
Actual Results:  
4. Folder disappears from folders list
7. Folder has re-appeared in list

Expected Results:  
The folder should really be deleted

a. Thunderbird should UNSELECT an IMAP folder before trying to delete it. Or logout and login again.
b. Thunderbird should not ignore IMAP error messages and pretend that DELETE worked when there was no OK confirmation from the server.

3 select "Trash/testf1.mbx2"

* 17 EXISTS

* 0 RECENT
3 OK [READ-WRITE] SELECT completed
5 IDLE

+ Waiting for DONE

DONE

5 OK IDLE completed

6 list "" "Trash/testf1.mbx2/*"

* LIST (\HasNoChildren) "/" Trash/testf1.mbx2/

6 OK LIST completed

7 delete "Trash/testf1.mbx2/"

7 NO Can't lock mailbox for delete: Trash/testf1.mbx2/

8 IDLE

+ Waiting for DONE

* OK Timeout in 30 minutes

DONE
don't know if this need new bug but here's my SRI

imap account folder xyz
delete xyz
click in trash folder
empty trash
xyz is still in folderpane
click out and back in xyz
Alert
'The current command did not succeed. The mail server responded:Unknown Mailbox: [GMAIL]/Trash/xyz (now in authenticated state)(Failure)
you can get rid of xyz by 'delete'. The IMAP returns a server error for its end but the folder is removed from folderpane.
(In reply to comment #1)
> don't know if this need new bug but here's my SRI
> 
> imap account folder xyz
> delete xyz
> click in trash folder
> empty trash
> xyz is still in folderpane
> click out and back in xyz
> Alert
> 'The current command did not succeed. The mail server responded:Unknown
> Mailbox: [GMAIL]/Trash/xyz (now in authenticated state)(Failure)

This was works for me in 3.0b3/mac. What delete model do you use Phil ?


Phil what version of Tb were you running ?
Component: General → Networking: IMAP
Product: Thunderbird → MailNews Core
QA Contact: general → networking.imap
> 
> Phil what version of Tb were you running ?

built a few days ago, can't be sure if it is regression. I've deleted folders before and emptied the trash without problem, but I'm not 100% sure I've done that in IMAP with earlier versions.  This problem does not happen to local store.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1pre) Gecko/20090719 Shredder/3.0b4pre
made a mistake on my STR

the folder in trash has to be the selected one (in focus) Then rt click trash and empty trash

The folder should vanish and the parent or previous child should be the focus.

if you repeat the above but use the file menu / empty trash then it will work ok
Was the folder empty or di it contained emails ?
it was an empty folder(In reply to comment #6)
> Was the folder empty or di it contained emails ?
we have code that deals with something like this, i.e., closing connections open on folders about to be moved/deleted. Perhaps we don't do it for the trash, but that would be a little surprising. Confirming based on Phil's confirmation.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to comment #0)
> 1.Select a folder for viewing from UW IMAP server

> 7 delete "Trash/testf1.mbx2/"
> 7 NO Can't lock mailbox for delete: Trash/testf1.mbx2/

Sounds same phenomenon as Bug 357911. See also Bug 414101(DUPed to Bug 357911). 
Do you use new MIX mailbox format?
Summary: Tbird cannot delete folder if it is currently open, and ignores IMAP error message → Tbird cannot delete folder if it is currently open, and ignores IMAP error message (UW IMAP, MIX mailbox format)
Summary: Tbird cannot delete folder if it is currently open, and ignores IMAP error message (UW IMAP, MIX mailbox format) → Tbird cannot delete folder if it is currently open, and ignores IMAP error message (UW-IMAP, MIX mailbox format)
Severity: normal → S3
Attachment #9386632 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: