When connecting to an existing imap server w/ a new profile, we need to display the localized names of the special folders we recognize immediately, before a restart.
Just to clarify in the subject that this is imap only - bug 467527 fixed the rest of the cases.
this is turning out to be a bit complicated - I have a patch in my tree that seems like it should work, and I think it does in some situations. But it does not work in the following situation: 1. Use the new autoconfig wizard to setup your server. 2. Have a server with a non-blank default namespace (e.g., Inbox.) I believe the verifyLogon url we run from the autoconfig wizard leaves the server in a partly initialized state, or leaves the connection we've run in a somewhat unexpected state. In any case, the default namespace ("") has not been cleared from the host session list entry for that server, so we don't recognize the existing Sent folder as matching the sent folder fcc pref, because the former ends with "Inbox/Sent" and the latter just "Sent". We have code that corrects this, but it relies on the namespace to be set correctly.
Also, the verify logon url does a namespace command but doesn't do folder discovery. I don't see why that should cause problems, but it might be an issue. So I'm going to try to first stop it from doing that and see if that helps.
Created attachment 394579 [details] [diff] [review] proposed fix This should fix it. I think this may also help with some goofiness that occurs on the first use of an account after doing quick setup, because if the namespace isn't set correctly, various things like creating new folders or selecting existing folders may not work (all fixed by doing a restart).
fix checked in.