Closed Bug 33384 Opened 24 years ago Closed 21 years ago

UI: Setting multiple identities gives bogus From: dropdown box

Categories

(SeaMonkey :: MailNews: Account Configuration, defect, P3)

x86
Windows 98
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 226580
Future

People

(Reporter: edwin, Assigned: sspitzer)

Details

Build ID: 2000-03-24-17-M15-nb1b

To reproduce:
1. edit prefs.js and change the following setting:
      user_pref("mail.account.account1.identities", "id1,id2");
2. add a second identity if necessairy
3. start mail/news
4. compose a new message

The bug:
Look at the drop down box for the From: field. The first entry is '<>' instead
of a valid e-mail address.

Expected behaviour:
The From: drop down box contains a list of valid e-mail adresses (id1 and id2).
QA Contact: lchiang → nbaca
multiple identities per account is unsupported so gets lower priority, sorry :(
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Oh well, never mind, I found a workaround ;)

Add a few accounts without assigning a server, like this:

user_pref("mail.account.account1.identities", "id1");
user_pref("mail.account.account1.server", "server1");
user_pref("mail.account.account2.identities", "id2");
user_pref("mail.account.account3.identities", "id3");
user_pref("mail.account.account4.identities", "id4");

Only account 1 will show up in the account dialog (and the sidebar), but all 
identities show up in the compose dialog.
cool. I'll still fix this bug though :)
Summary: Setting multiple identities gives bogus From: dropdown box → UI: Setting multiple identities gives bogus From: dropdown box
moving to future.
Target Milestone: M17 → Future
massive reassign of account manager bugs -> sspitzer
please feel free to put me back on the CC if you have any questions/comments
Assignee: alecf → sspitzer
Status: ASSIGNED → NEW
more re-assigns to racham.
Assignee: sspitzer → racham
mass re-assign.
Assignee: racham → sspitzer
Here are some of my observations. I am using the 11JUN windows build of Thunderbird.

Initially I had the following in my user.js: 
user_pref("mail.identity.id1.useremail", "first address");
user_pref("mail.identity.id2.useremail", "second address");
user_pref("mail.identity.id3.useremail", "third address");
user_pref("mail.identity.id4.useremail", "fourth address");
user_pref("mail.identity.id1,id2,id3,id4.fullName", "Rakhesh Sasidharan");
... and many more. 

When I chose compose, I was shown "Rakhesh Sasidharan <>" in the "From:" field.
Next, I tried replacing: 
user_pref("mail.identity.id1,id2,id3,id4.fullName", "Rakhesh Sasidharan");
- with -
user_pref("mail.identity.id1.fullName", "Rakhesh Sasidharan");
user_pref("mail.identity.id2.fullName", "Rakhesh Sasidharan") 
user_pref("mail.identity.id3.fullName", "Rakhesh Sasidharan") 
user_pref("mail.identity.id4.fullName", "Rakhesh Sasidharan") 

This resulted in only a "<>" being showin in the "From:" field (i.e. even the
name part is removed). 

Next, I tried the workaround. Since "account2" already exists (local folders), I
added: 
user_pref("mail.account.account1.identities", "id1");
user_pref("mail.account.account3.identities", "id2");
user_pref("mail.account.account4.identities", "id3");
user_pref("mail.account.account5.identities", "id4");

and also: user_pref("mail.accountmanager.accounts",
"account1,account2,account3,account4,account5");

This time when I chose the compose window, Thunderbird gave me an error message:
"An error occured while creating a message compose window. Please try again."

If I do not add the last line (the mail.accountmanager one), then the compose
window opens fine, but only shows the first identity. 
This is a related issue, and probably doesn't require a new bug:
I have an account on a mail server known by two names, e.g. a.com and b.com, and
depending on who I send mail to, I want to use either danson@a.com or
danson@b.com as the 'from' address. When I try to set up the second account with
the account manager, I get error messages saying that an account already exists
with that user name and server. Really all I want to be able to do is have two
names in the 'From' drop down in the message composer. In spite of the error
messages, Thunderbird does indeed create the second address for the drop down.
I'm duping this against the much newer bug 226580. That's because that bug fixes
the backend and the identities dropdown automatically looks ok again.

*** This bug has been marked as a duplicate of 226580 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.