Open Bug 314861 Opened 19 years ago Updated 2 years ago

When new Profile is made, the displayed port number of the smtp server is zero

Categories

(MailNews Core :: Account Manager, defect)

1.9.2 Branch
x86
All
defect

Tracking

(Not tracked)

People

(Reporter: sugar.waffle, Unassigned)

References

Details

Attachments

(1 file)

When POP account is made with a new profile, the port number of the SMTP server is illegally displayed as an account manager. 
(Mail can be sent.)

It should display this by port number 25 of default. 

1.8branch build version 1.5 (20051102)
Attached image screen shot
Problem was recreated with Thunderbird latest-trunk win32-ZIP build - Thunderbird version 1.6a1 (20051103) and Seamonkey latest-trunk 2005110310/Win32-ZIP build on MS Win-2K.

(1)prefs.js entries after new profile/first account definition
   user_pref("mail.smtp.defaultserver", "smtp1");
   user_pref("mail.smtpserver.smtp1.hostname", "xxx.yyy.zzz");
   user_pref("mail.smtpserver.smtp1.username", "aaa");
   user_pref("mail.smtpservers", "smtp1");
(2)Go to "Outgoing Server(SMTP) Settings"
   "port : 0" is displayed. 
(3)Edit the SMTP entry, and press OK
   "port : 25" is displayed. 
(4)prefs.js entries after (3)
   user_pref("mail.smtp.defaultserver", "smtp1");
   user_pref("mail.smtpserver.smtp1.hostname", "xxx.yyy.zzz");
   user_pref("mail.smtpserver.smtp1.username", "aaa");
   user_pref("mail.smtpservers", "smtp1");
(5)Close "Outgoing Server(SMTP) Settings" panel by pressing OK
   user_pref("mail.smtp.defaultserver", "smtp1");
   user_pref("mail.smtpserver.smtp1.auth_method", 1);
   user_pref("mail.smtpserver.smtp1.hostname", "xxx.yyy.zzz");
   user_pref("mail.smtpserver.smtp1.port", 25);
   user_pref("mail.smtpserver.smtp1.try_ssl", 0);
   user_pref("mail.smtpserver.smtp1.username", "aaa");
   user_pref("mail.smtpservers", "smtp1");

No problem on SMTP connection as you say "Mail can be sent", because smtp1.auth_method=1 & smtp1.port=25 & smtp1.try_ssl=0 are defaulted if these prefs.js entries are not found for the SMTP.
OS: MacOS X → All
Hardware: Macintosh → PC
Summary: When new Profile is made, the port number of the smtp server is illegally displayed. → When new Profile is made, the port number of the smtp server is illegally displayed (port=0 is displayed).
Reproduced on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4pre) Gecko/20070404 Thunderbird/2.0.0.0pre ID:2007040403
Version: 1.5 → 2.0
This is really a "core" issue, because the exact same thing happens in 
SeaMonkey (on the trunk).
I'm kind of guessing, but, I think the problem is here:

http://mxr.mozilla.org/thunderbird/source/mailnews/base/prefs/resources/content/smtpEditOverlay.js

65     gSmtpPort = document.getElementById("smtp.port");

76         gSmtpPort.value = server.port ? server.port : "";

In other areas, I see that there is the idea that you set the port to the port value when it is empty:

http://mxr.mozilla.org/thunderbird/source/mailnews/base/prefs/resources/content/am-server.js

181     var defaultPort = protocolInfo.getDefaultServerPort(false);
182     var defaultPortSecure = protocolInfo.getDefaultServerPort(true);
183     var port = document.getElementById("server.port");
184     var portDefault = document.getElementById("defaultPort");

187     if (isSecureSelected) {
188       portDefault.value = defaultPortSecure;
189       if (port.value == "" || (port.value == defaultPort && prevDefaultPort != portDefault.value))
190         port.value = defaultPortSecure;
191     } else {
192         portDefault.value = defaultPort;
193         if (port.value == "" || (port.value == defaultPortSecure && prevDefaultPort != portDefault.value))
194           port.value = defaultPort;
195     } 

Summary: When new Profile is made, the port number of the smtp server is illegally displayed (port=0 is displayed). → When new Profile is made, the displayed port number of the smtp server is zero
Assignee: mscott → nobody
WADA, can you still reproduce this in TB13?
Product: Thunderbird → MailNews Core
QA Contact: account-manager → account-manager
Version: 2.0 → 1.9.2 Branch
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: