Open Bug 97865 Opened 25 years ago Updated 4 years ago

Cyrus IMAP: "Mailbox does not exist" alert displays when select subfolders after renamed parent folder

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows NT
defect

Tracking

(Not tracked)

People

(Reporter: huang, Unassigned)

References

Details

Attachments

(2 files)

"Mailbox does not exist" alert displays when select subfolders after renamed parent folder 1) Login to a Cyrus IMAP account with the correct personal namespace setup to "Inbox.". 2) Select the folder(e.g. folderA) with few levels subfolders (e.g. folderB & folder C...) 3) Renamed the parent folder (e.g. Renamed from folderA -> folderAa) 4) After renamed the parent folder and select the subfolders under this parent folder Actual Results: An alert displays: "The current command did not succeed. The mail server responded: Mailbox does not exist" Actual Results: Should alllow users to select the subfolder without this alert after renamed their parent folder
Ccing Cavin.
Please note the following lines from the IMAP log: -------------------------------------------------------------------- 275[5507420]: buggy.mcom.com:A:SendData: 19 rename "INBOX.folderA" "INBOX.folderAa" 313[4786090]: buggy.mcom.com:S-INBOX:SendData: 36 noop 313[4786090]: buggy.mcom.com:S-INBOX:CreateNewLineFromSocket: 36 OK Completed 313[4786090]: buggy.mcom.com:S-INBOX:SendData: 37 UID fetch 54:* (FLAGS) 313[4786090]: buggy.mcom.com:S-INBOX:CreateNewLineFromSocket: * 24 FETCH (FLAGS (\Seen) UID 53) 313[4786090]: buggy.mcom.com:S-INBOX:CreateNewLineFromSocket: 37 OK Completed 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: 19 OK Completed 275[5507420]: buggy.mcom.com:A:SendData: 20 subscribe "INBOX.folderAa" 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: 20 OK Completed 275[5507420]: buggy.mcom.com:A:SendData: 21 unsubscribe "INBOX.folderA" 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: 21 OK Completed 275[5507420]: buggy.mcom.com:A:SendData: 22 select "INBOX.folderAa" 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen) 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: * 0 EXISTS 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: * 0 RECENT 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: * OK [UIDVALIDITY 999298634] 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: 22 OK [READ-WRITE] Completed 275[5507420]: buggy.mcom.com:S-INBOX.folderAa:SendData: 23 getacl "INBOX.folderAa" 275[5507420]: buggy.mcom.com:S-INBOX.folderAa:CreateNewLineFromSocket: * ACL INBOX.folderAa test02 lrswipcda 275[5507420]: buggy.mcom.com:S-INBOX.folderAa:CreateNewLineFromSocket: 23 OK Completed 275[5507420]: buggy.mcom.com:S-INBOX.folderAa:SendData: 24 select "INBOX.folderAa.folderB" 275[5507420]: buggy.mcom.com:S-INBOX.folderAa.folderB:CreateNewLineFromSocket: 24 NO Mailbox does not exist 275[5507420]: buggy.mcom.com:A:SendData: 25 getacl "INBOX.folderAa.folderB" 275[5507420]: buggy.mcom.com:A:CreateNewLineFromSocket: 25 NO Mailbox does not exist -------------------------------------------------------------------------------
Nominating nsBranch since users shouldn't see this alert when they selecting subfolders after renamed parent folder......
Keywords: nsbranch
It works for 4.x because 4.x issues cmds to rename all subfolders. In other words, it issues the following cmds as well: 1 rename "INBOX.folderA.folderB" "INBOX.folderAa.folderB" 2 subscribe "INBOX.folderAa.folderB" 3 unsubscribe "INBOX.folderA.folderB"
Ccing jgmyers for the rename definition in the imap rfc. Here is what the rfc says about the RENAME command: If the name has inferior hierarchical names, then the inferior hierarchical names MUST also be renamed. For example, a rename of "foo" to "zap" will rename "foo/bar" (assuming "/" is the hierarchy delimiter character) to "zap/bar". Since Cyrus does not rename all subfolders, is this a Cyrus bug? It seems painful for all IMAP clients to rename all subfolders for a given renamed parent folder (when this can be done by the servers).
The rename-subfolders requirement of the IMAP spec was added after Cyrus was developed. I don't know if recent versions of Cyrus have been fixed to conform to this. Note that the Cyrus server advertises the X-NON-HIERARCHICAL-RENAME capability, which can be used as an indication that the server does not conform to this particular requirement of the IMAP specification. Mozilla could either ignore this bug on the grounds that the server is noncomforming, it could use the presence of that capability to trigger client-side renaming of subfolders, or it could use the presence of that capability to not update the names of the subfolders in its client view. The second alternative would be the best.
Blocks: 99230
not an emojo stopper.
Keywords: nsbranch → nsbranch-
later versions of cyrus fix this server-side bug, so the workaround is less crucial.
Cool, do you know the version number of the servers which handle this now?
Ccing leg+mozilla@andrew.cmu.edu for the server version number.
since version 2.0, released 2000/04/25. the current version is 2.0.16.
Blocks: 107067
Keywords: nsbranch-
is this something need for MachV?
is this something need for MachV?
No longer blocks: 107067
Scott or Cavin, can you confirm this bug? If this problem is not occurring for Cyrus version 2.0.16 Server, should we still fix this for our internal Cyrus 1.5.2 for MachV?
Is this in any way related to 86968? It seems like they must both be Cyrus-only, or more people would be complaining due to how severe the problem can be/is. I notice it has been sitting waiting for a reply for a few months - I would like to confirm that I am still having the problem after renaming parent folders, and it is really easy to reproduce. On FreeBSD 4.6-STABLE, I am using the cyrus-imapd-2.0.16_2 port.
this bug is driving me insane...!
QA Contact: huang → gchan
I have the same problem with mozilla 1.3 and cyrus-imapd 2.1.12 (latest version). I had this folder structure: Jakarta - Tomcat - Struts ... Then I renamed Jakarta to Java. The GUI did _not_ change Jakarta to Java. But when I clicked on Jakarta I received the "mailbox does not exist" alert. It was necessary to restart mozilla mail serveral times and enable/disable "show only subscribed folders" in the server settings every time to get the new structure in the tree view. While doing this I saw also a gray instead of black colored "Jakarta". Another problem: my filters for moving the mails in the Tomcat and Struts folders did not get updated! I had to change the destination myself.
Product: MailNews → Core
this is still a problem.:( I can reproduce this bug with Thunderbird 1.5.x and 2.x /Teststruktur/ 1.ebene1/ 1.ebene2/ 2.ebene1/ 2.ebene2/ 3.ebene1/ 3.ebene2/ 2.ebene3 When I move the folder "2.ebene2" below "Teststruktur" it looks liked it worked but entering "3.ebene1" or "3.ebene2" gives "Mailbox does not exists" back. The server is cyrus and when I use evolution as mailclient it is working like expected. I traced the IMAP commands and evolution is doing: A00052 OK [READ-WRITE] Completed <1215179321<A00053 RENAME {30+} Teststruktur/1.ebene2/2.ebene2 {21+} Teststruktur/2.ebene2 >1215179321>* OK rename Teststruktur/1.ebene2/2.ebene2 Teststruktur/2.ebene2 >1215179321>A00053 OK Completed ... A00055 OK [READ-WRITE] Completed <1215179322<A00056 RENAME {39+} Teststruktur/1.ebene2/2.ebene2/3.ebene1 {30+} Teststruktur/2.ebene2/3.ebene1 >1215179322>* OK rename Teststruktur/1.ebene2/2.ebene2/3.ebene1 Teststruktur/2.ebene2/3.ebene1 >1215179322>A00056 OK Completed ... <1215179322<A00059 RENAME {39+} Teststruktur/1.ebene2/2.ebene2/3.ebene2 {30+} Teststruktur/2.ebene2/3.ebene2 >1215179322>* OK rename Teststruktur/1.ebene2/2.ebene2/3.ebene2 Teststruktur/2.ebene2/3.ebene2 >1215179322>A00059 OK Completed Evolution is renaming the folder and the subfolder. thunderbird is just renaming the folder without the subfolders: <1215179135<11 RENAME {30+} Teststruktur/1.ebene2/2.ebene2 {21+} Teststruktur/2.ebene2 >1215179135>* OK rename Teststruktur/1.ebene2/2.ebene2 Teststruktur/2.ebene2 >1215179135>11 OK Completed <1215179136<12 Subscribe {21+} Teststruktur/2.ebene2 >1215179136>12 OK Completed <1215179136<13 Unsubscribe {30+} Teststruktur/1.ebene2/2.ebene2 >1215179136>13 OK Completed <1215179136<15 Unsubscribe {39+} Teststruktur/1.ebene2/2.ebene2/3.ebene1 >1215179136>15 OK Completed <1215179136<17 Unsubscribe {39+} Teststruktur/1.ebene2/2.ebene2/3.ebene2 >1215179136>17 OK Completed <1215179150<Q01 LOGOUT >1215179150>* BYE LOGOUT received
Assignee: mscott → nobody
Hi, I used Noèls approach to reproduce this bug. But for me It's working fine under Debian Lenny with cyrus 2.2.13 and Thunderbird 2.0.0.16 Best Regards, Marvin Stark
so maybe the problem depends on the version of cyrus.
I tested it again with cyrus 2.2.13 and Thunderbird 2.0.0.17. The problem is still there. I move a folder with subfolders with the mouse one directory up and the folder list is updated as intended but entering them results "Mailbox does not exists". Restarting thunderbird updates the folderlist and the subfolders of the moved folder are in the old hierachy. cyradm shows that only one folder was moved/renamed and not the subfolders.
I tested it with Thunderbird 3 (snapshot 2008-11-23). cyradm and thunderbird 2 show the 3.ebene1/ and 3.ebene2/ correctly but thunderbird 3 don't show any 3.ebene* subfolders at all. Not in the folder list and not in the abonnement dialog.
I tried some more folder moving and I can reproduce the problem thunderbird3: Here are the cyrus protocoll logs: thunderbird 2: <1227527864<10 close^M >1227527864>10 OK Completed^M <1227527864<11 rename "Teststruktur/1.ebene2/2.ebene2" "Teststruktur/2.ebene2"^M >1227527864>* OK rename Teststruktur/1.ebene2/2.ebene2 Teststruktur/2.ebene2^M >1227527864>11 OK Completed^M <1227527864<12 subscribe "Teststruktur/2.ebene2"^M >1227527864>12 OK Completed^M <1227527864<13 unsubscribe "Teststruktur/1.ebene2/2.ebene2"^M >1227527864>13 OK Completed^M <1227527864<14 subscribe "Teststruktur/2.ebene2/3.ebene1"^M >1227527864>14 NO Subscribe: Mailbox does not exist^M <1227527864<15 unsubscribe "Teststruktur/1.ebene2/2.ebene2/3.ebene1"^M >1227527864>15 OK Completed^M <1227527864<16 subscribe "Teststruktur/2.ebene2/3.ebene2"^M >1227527864>16 NO Subscribe: Mailbox does not exist^M <1227527865<17 unsubscribe "Teststruktur/1.ebene2/2.ebene2/3.ebene2"^M >1227527865>17 OK Completed^M thunderbird 3 >1227528117>17 OK Completed^M <1227528117<18 rename "Teststruktur/1.ebene2/tb3move" "Teststruktur/tb3move"^M >1227528117>* OK rename Teststruktur/1.ebene2/tb3move Teststruktur/tb3move^M >1227528117>18 OK Completed^M <1227528117<19 subscribe "Teststruktur/tb3move"^M >1227528117>19 OK Completed^M <1227528117<20 unsubscribe "Teststruktur/1.ebene2/tb3move"^M >1227528117>20 OK Completed^M <1227528117<21 subscribe "Teststruktur/tb3move/tb3subfolder1"^M >1227528117>21 NO Subscribe: Mailbox does not exist^M <1227528117<22 unsubscribe "Teststruktur/1.ebene2/tb3move/tb3subfolder1"^M >1227528117>22 OK Completed^M <1227528117<23 subscribe "Teststruktur/tb3move/tb3subfolder2"^M >1227528117>23 NO Subscribe: Mailbox does not exist^M <1227528117<24 unsubscribe "Teststruktur/1.ebene2/tb3move/tb3subfolder2"^M >1227528117>24 OK Completed^M <1227528120<25 select "Teststruktur/tb3move/tb3subfolder1"^M >1227528120>25 NO Mailbox does not exist^M <1227528124<26 logout^M >1227528124>* BYE LOGOUT received^M in both cases only the folder and not the subfolders are renamed. In comment #20 you see how evolution is doing it. Every folder needs to be renamed.
I analysed some more. The described problem up to 2003 in this bug described the missing functionality of cyrus. This is fixed and done since cyrus 2.x. What I added to this bug this year looks like a cyrus problem and not a thunderbird problem. I reported it to cyrus: https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3120 This bug can be closed because the first part is fixed and the second invalid.
Product: Core → MailNews Core
QA Contact: grylchan → networking.imap
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: