Henrik,


> You can do it by manually changing the info in the prefs.js file. It's
> located in your mozilla profile directory.
> Do a search on "prefs.js"

Do you notice any problems after doing that?  While I believe it too be 
possible to hand edit your prefs to rename an account, I don't recommend it.

For example:

Say I have an imap account on the server nsmail-1, username sspitzer.

And I have my "sent folder" pref set to the "Sent" folder on that server.

so in my prefs.js, I have something like:

user_pref("mail.identity.id2.fcc_folder","imap://sspitzer@nsmail-1/Sent");

If I go and hand edit my prefs to change from nsmail-1 to nsmail-2, bad 
thing will happen when I send email.

I currently own the bug to all users to change the username or hostname 
from the account settings dialog.  Coming up with a fix is going to be 
interesting and will require some thought and a whole lot of testing.

editing the prefs file after you've quit the application avoids some of 
these problems, since there are no "live" objects with uri's that need 
to be changed.

I've been thinking about having the uri's be

scheme://<server key>/<folder path>

instead of

scheme://<username>@<hostname>/<folder path>

since server key doesn't change and won't change if the hostname or 
username changes.

We'll have to fix a bunch of code that used the uri to get the username 
or hostname (which is a good thing, since we might be parsing the uri to 
get that info, which is bad.)  if we don't have the incoming server, 
we'll have to go through the account manager.

we'll also have to migrate a lot of prefs, like the fcc_folder pref 
example above.

As you can tell, I haven't really thought this all through.

I've been focusing on performance problems and making sure patches from 
external contributors get checked into the tree in a timely fashion.

If someone is interested in tackling this beast, add yourself to 
http://bugzilla.mozilla.org/show_bug.cgi?id=14295

-Seth


Reply via email to