Closed
Bug 95789
Opened 23 years ago
Closed 22 years ago
wrong default domain after selecting different mail account
Categories
(MailNews Core :: Composition, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: lord, Assigned: vparthas)
References
Details
Attachments
(2 files, 1 obsolete file)
30.08 KB,
image/gif
|
Details | |
1.55 KB,
patch
|
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
Build: 2001 08 15 04 WinME I have two mail accounts. When I compose a new mail message, bug 79053 often causes the client to select the wrong mail account. This bug causes the sig and the From header to be incorrectly set to lord@well.com rather than lord@netscape.com. I change the mail account from lord@well.com to lord@netscape.com by clicking on the From pop-up menu. (This action triggers bug 95727) Expected behavior: When I add recipient email addresses, the mail compose window should assume I want to auto-complete addresses under my lord@netscape.com profile. That means unspecified domains should default to "@netscape.com" and should also use the Netscape LDAP server for type-down addressing. Observed behavior: The client assumes a "@well.com" suffix and does not use the Netscape LDAP server. When the client correctly selects the lord@netscape.com mail account, things work as expected.
Comment 3•23 years ago
|
||
This is stiff a problem using a recent build. We have code to switch the default domain when you change identity but that seems to be broken. Reassign to varada...
Assignee: ducarroz → varada
Target Milestone: --- → mozilla0.9.9
Updated•23 years ago
|
Updated•23 years ago
|
Regression was caused by moving the code that changed the domain when identity changed.
Comment 5•22 years ago
|
||
Comment on attachment 94683 [details] [diff] [review] Patch V1 r=ducarroz
Attachment #94683 -
Flags: review+
Comment 6•22 years ago
|
||
Comment on attachment 94683 [details] [diff] [review] Patch V1 is this cloned code? if so, could we have a helper routine?
Moved some common code to another function.
Attachment #94683 -
Attachment is obsolete: true
Comment 8•22 years ago
|
||
any particular reason you didn't add these two line to the helper routine? + if (!gAutocompleteSession) + gAutocompleteSession = Components.classes["@mozilla.org/autocompleteSession;1?type=addrbook"].getService(Components.interfaces.nsIAbAutoCompleteSession);
The two places that we use this are when we change the identity and when we input in the addressing widget. In the former case (i.e. this bug) we need to force the domain name check each time whereas in the latter we dont need to do it if the gAutoCompleteSession already exists.
Comment 10•22 years ago
|
||
if I understand you correctly, then what you could have done is, in the bug case, nulled out gAutoCompleteSession, and then called the helper routine, which would look something like this: function setupAutoComplete() { if (!gAutocompleteSession) gAutocompleteSession = Components.classes["@mozilla.org/autocompleteSession;1?type=addrbook"].getService(Components.interfaces.nsIAbAutoCompleteSession); if (gAutocompleteSession) { var emailAddr = gCurrentIdentity.email; var start = emailAddr.lastIndexOf("@"); gAutocompleteSession.defaultDomain = emailAddr.slice(start + 1, emailAddr.length); } but I'll leave that up to you.
Comment 11•22 years ago
|
||
Comment on attachment 96072 [details] [diff] [review] Patch V1.1 sr=bienvenu
Attachment #96072 -
Flags: superreview+
Assignee | ||
Comment 12•22 years ago
|
||
The reason I didnt do that was because when the setupAutoComplete is called from oninput in the addressing widget it is better to return if the gAutocompleteSession already exists. If I nulled it and did the processing again it would mean that much increase for each input in the addressing widget.
Assignee | ||
Comment 13•22 years ago
|
||
Marking Fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 14•22 years ago
|
||
Buffy Trunk build 2002-10-29: WinMe, Linux 8, Mac 10.1.3 Verified Fixed.
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•