Closed Bug 25146 Opened 25 years ago Closed 24 years ago

Cannot initiate draft & template folders on NMS IMAP server


(MailNews Core :: Backend, defect, P3)

Windows NT


(Not tracked)



(Reporter: huang, Assigned: Bienvenu)



(Whiteboard: fix in hand[nsbeta3+])

Used WinNT 2000-01-25-20-M13 commercial build/NMS IMAP server
Cannot initiate draft & template folders on NMS IMAP server 
(Netscape Messaging 4.1 IMAP server)

Set up info:
Be sure to set up an IMAP profile for 4.7 as following:
1) Set up "Perferences - Copies & Folders" on the IMAP server name.
2) No draft & template folders created from 4.7
3) Migrated to 5.0.

1) Opened this migrated profile & login to this IMAP mail account from 5.0.
2) Select New Msg and composed new message.
3) Select save as draft (or save as template)
4) Actual Results: Got an error: The command did not succeed. 
   The mail server responded: Mailbox does not exist.

Expected Results: Should initiate draft/template folders successfully without                   
this error msg.

Additional Info: I have checked the 5.0 Account Setup that "Copies & Folders" is 
displayed correctly on the Account Setup UI.

*** This bug has been marked as a duplicate of 23637 ***
Closed: 25 years ago
QA Contact: lchiang → pmock
Resolution: --- → DUPLICATE
Marking verified as a duplicate.
Hmm... may or may not ultimately be considered same issue as the duplicate I
pointed it to so will take away the resolved state and let it take its course.
Sorry for any confusion. 
Resolution: DUPLICATE → ---
Reassign to jefft
Assignee: phil → jefft
Target Milestone: M16
M15 .. actually. And we might want to release note this.
Target Milestone: M16 → M15
Keywords: relnote
Actually, this problem not has to be a migrated profile.
If used new profile...still need to initiate draft & template folders as well 
(when trying to save as draft/template for compose window....)
Target Milestone: M15 → M16
Mass moving M16 to M17 - look for nsbeta2 before anything else.
Target Milestone: M16 → M17
Moving to M18 and nominating for beta3.
Keywords: nsbeta3
Target Milestone: M17 → M18
The bug I'm about to mark as a dupo of this one got an nsbeta2+ so I'm 
transferring that over. also adding simone and rudman
Keywords: nsbeta3nsbeta2
Whiteboard: nsbeta2+
*** Bug 44038 has been marked as a duplicate of this bug. ***
Note that the Sent folder is not created as well. So if you attempt to send a
message, and you have the pref set to save a copy in the local Sent folder,
you'll see the error message---which may lead a user to conclude that the
message was never sent.
Whiteboard: nsbeta2+ → [nsbeta2+]
What needs to be done are:

o in compose/src/nsMsgCopy.cpp, LocateMessageFolder() needs to somehow try to 
get the imap online folder. If the imap folder doesn't exist, try list the 
folder because user may not subscribe to it if using subscription. If the folder 
does exist subscribe to it. If the folder does not exist create it then 
subscribe to it. Once we have the folder created/subscribed then proceed to save 
draft/template/sent copy.
o note that all the imap operation is asynchronous we to ensure that 
list/subscribe/create works before we do the save. We might want to make 
LocateMessageFolder() a method of nsMsgCopy object and implement nsMsgCopy a 
nsUrlListener so that we get notified the completion of list/subscribe/create 
taking from Jeff. Unlikely that this is going to get fixed. It's hard, which is
why it hasn't been done up to this point.
Assignee: jefft → bienvenu
Whiteboard: [nsbeta2+] → [nsbeta2+] ETA 7/22
marking nsbeta2- as decided by mail triage.
Whiteboard: [nsbeta2+] ETA 7/22 → [nsbeta2-]
adding nsbeta3 keyword
Keywords: nsbeta3
Keywords: correctness
Keywords: nsbeta2
Whiteboard: [nsbeta2-]
This was release noted in beta1, so we should be able to use same wording. Will
find it and place the beta1 wording in attachment for vera.

Changing relnote to relnote2
Keywords: relnoterelnote2
Keywords: mail2
I'm getting close to a fix for this - it's a lot of work. I hope it's obvious
that we have to fix this.
Whiteboard: working on fix
David, we decided to nsbeta3- this yesterday.  I added it to the status 
whiteboard.  At this point, if it's easier to finish it than to not finish it go 
ahead, otherwise, feel free to stop.
Whiteboard: working on fix → working on fix[nsbeta3-]
I will fix this - if I don't, we might as well cut the draft and template folder
feature because they're broken, which I don't think we should do.
Whiteboard: working on fix[nsbeta3-] → fix in hand[nsbeta3-]
Closed: 25 years ago24 years ago
Resolution: --- → FIXED
fix checked in.
Since this is fixed, I'll change the - to a +.
Whiteboard: fix in hand[nsbeta3-] → fix in hand[nsbeta3+]
It seems this is fixed on 08-23-14-M18 commercial build....
Verified as fixed on win32, macos, and linux using the following builds:
 win32 commercial seamonkey build 2000-091312-m18 installed on P500 win98
 macos commercial seamonkey build 2000-091312-m18 installed on G3/400 OS 9.04
 linux commercial seamonkey build 2000-091408-m18 installed on P200 RedHat 6.2

Ran the migration test.  On the parp server, I used test accounts that did not
previous have an existing draft or template folder created on the imap account
removing mail2 keyword.
Keywords: mail2
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.