Closed Bug 373573 Opened 19 years ago Closed 16 years ago

SMTP server dropdown doesn't play nicely with Use Default Server

Categories

(MailNews Core :: Account Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0rc1

People

(Reporter: rod.whiteley, Assigned: mkmelin)

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 Build Identifier: Thunderbird 2.0pre (20070311) In the Identity Settings dialog for a default identity, changing the Outgoing Server (SMTP) choice appears to have no effect. This is because the change is not picked up by the Account Settings dialog, so that pressing OK there backs out the change. Reproducible: Always Steps to Reproduce: 1. Go to Account Settings. 2. Ensure that the Outgoing Server (SMTP) page lists more than one server. 3. Select an account, press its Manage Identities... button, select the account's default identity, press the Edit... button. 4. In the Identity Settings dialog, change the Outgoing Server (SMTP) choice, and press OK to close the dialog. 5. Press OK to close the Identities for [account] dialog. 6. Press OK to close the Account Settings. Actual Results: The SMTP server does not change. Expected Results: The SMTP server should change to the server you selected. This appears to happen because in am-identity-edit.js, the function initIdentityValues does not initialize the SMTP server field. Adding the following line to the end of that function seems to cure the problem: document.getElementById('identity.smtpServerKey').value = identity.smtpServerKey;
WFM on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3pre) Gecko/20070312 Thunderbird/2.0pre ID:2007031203
This WFM too, and has every time I've tried to reproduce it over the last two years; but there are a number of people who see this.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Sorry, I'm an idiot; that comment was intended for a different bug.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
*This* bug, I can reproduce. Good catch!
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 98 → All
Hardware: PC → All
Version: unspecified → 2.0
Target Milestone: --- → Thunderbird 3
Attached file random unrelated crap (obsolete) —
Attachment #276971 - Attachment is patch: true
Attachment #276971 - Attachment mime type: application/octet-stream → text/plain
Attachment #276971 - Flags: superreview?
Attachment #276971 - Flags: review?
Attachment #276971 - Flags: approval1.9?
Attachment #276971 - Flags: approval1.8.1.7?
Attachment #276971 - Flags: approval1.8.0.14?
Attachment #276971 - Flags: approval1.8.0.13?
Attachment #276971 - Flags: approval-thunderbird3?
Attachment #276971 - Flags: approval-thunderbird2?
Comment on attachment 276971 [details] random unrelated crap Please don't abuse bugzilla flags.
Attachment #276971 - Flags: superreview?
Attachment #276971 - Flags: review?
Attachment #276971 - Flags: approval1.9?
Attachment #276971 - Flags: approval1.8.1.7?
Attachment #276971 - Flags: approval1.8.0.14?
Attachment #276971 - Flags: approval1.8.0.13?
Attachment #276971 - Flags: approval-thunderbird3?
Attachment #276971 - Flags: approval-thunderbird2?
Attachment #276971 - Attachment description: bugzilla attachment → random unrelated crap
Attachment #276971 - Attachment is obsolete: true
Attachment #276971 - Attachment is patch: false
Assignee: mscott → nobody
The original symptoms have changed. Now if you set "Use Default", you will get a very thin dropdown.
Summary: Cannot set default identity's SMTP server in Identity Settings dialog → SMTP server dropdown doesn't play nicely with Use Default Server
Product: Thunderbird → MailNews Core
QA Contact: account-manager → account-manager
Target Milestone: Thunderbird 3 → ---
Version: 2.0 → Trunk
Attached patch proposed fix (obsolete) — Splinter Review
Make Use Default work. (redirectorType is long gone)
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Attachment #398949 - Flags: superreview?(neil)
Attachment #398949 - Flags: review?(mnyromyr)
Comment on attachment 398949 [details] [diff] [review] proposed fix > function loadSMTPServerList() > { >- var smtpService = Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); >- fillSmtpServers(document.getElementById('identity.smtpServerKey'), smtpService.smtpServers, smtpService.defaultServer); >+ var smtpService = Components.classes["@mozilla.org/messengercompose/smtp;1"] >+ .getService(Components.interfaces.nsISmtpService); >+ fillSmtpServers(document.getElementById("identity.smtpServerKey"), >+ smtpService.smtpServers, smtpService.defaultServer); > } > > function fillSmtpServers(smtpServerList, servers, defaultServer) > { Bah, we can't share this with am-smtp.js due to global scope "pollution" :-(
Attachment #398949 - Flags: superreview?(neil) → superreview+
Comment on attachment 398949 [details] [diff] [review] proposed fix >+ fillSmtpServers(document.getElementById("identity.smtpServerKey"), >+ smtpService.smtpServers, smtpService.defaultServer); > } > > function fillSmtpServers(smtpServerList, servers, defaultServer) If we have only one caller and can't share the function anyway, what's the point of having a separate fillSmtpServers at all? If you can't imagine one either, just kill it. ;-)
Attachment #398949 - Flags: review?(mnyromyr) → review+
Carrying forward r=mnyromyr, sr=neil
Attachment #398949 - Attachment is obsolete: true
Attachment #401255 - Flags: superreview+
Attachment #401255 - Flags: review+
Attachment #401255 - Flags: approval-thunderbird3?
Target Milestone: --- → Thunderbird 3.0rc1
Attachment #401255 - Flags: approval-thunderbird3? → approval-thunderbird3+
Status: ASSIGNED → RESOLVED
Closed: 19 years ago16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: