Closed Bug 106631 Opened 23 years ago Closed 23 years ago

Regression: Specifying a port for SMTP server no longer works

Categories

(MailNews Core :: Networking: SMTP, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 52330
mozilla0.9.9

People

(Reporter: KaiE, Assigned: mscott)

References

Details

Attachments

(1 file, 1 obsolete file)

In the past, even with the 0.9.4 branch, it was possible to enter the hostname for the smtp server in host:port notation. As Mailnews does not provide a separate GUI for specifying the port name of the server, this was the only way of using a nonstandard port. With the current trunk of Mozilla this does no longer work. To reproduce this, you need a smtp server running on a port different from 25. Set smtp hostname to hostname:port. Send a mail. Mozilla complains with the error message "cannot connect to server". This is caused by NS_MsgBuildSmtpUrl, which always appends ":25" to the smtp hostname.
Attached patch Suggested fix (obsolete) — Splinter Review
*** Bug 106630 has been marked as a duplicate of this bug. ***
*** Bug 106629 has been marked as a duplicate of this bug. ***
*** Bug 106628 has been marked as a duplicate of this bug. ***
Attached patch checks for present colon, and only appends colon/portname if necessary. Adding patch, review keywords, P1 because we have a patch.
Keywords: patch, review
Priority: -- → P1
Blocks: 86648
The patch looks good to me, although I would prefer if you use New World strings. :) Adding naving and bienvenu for official r=/sr= as I do not feel confident reviewing this code.
Attachment #55026 - Attachment is obsolete: true
*** Bug 107529 has been marked as a duplicate of this bug. ***
Please review my simple patch.
Keywords: nsbeta1
*** Bug 86648 has been marked as a duplicate of this bug. ***
Nominating for 0.9.6. I know we are late, but it is a simple fix. Please re-target if approriate.
Target Milestone: --- → mozilla0.9.6
hey kai, this is not a 096 blocker so I'm going to move this off to 097. In addition the mailnews module is focusing on footprint & performance (see Seth's posting in the mailnewsgroup) right now and this bug fix doesn't fall along those lines. We're trying to discourage changes that don't help us move forward in those areas right now. Also, I'd rather not fix this with a hack but I have another bug which asks us to properly allow you to specify a port for smtp via the account manager dialog just like you can for imap and news. So I'd rather take the time to do it with a UI and what not.
Target Milestone: mozilla0.9.6 → mozilla0.9.7
moving to 0.9.9, but if you want this to be the same bug as the UI one (don't know what that one is) feel free to dup one of them.
Keywords: nsbeta1nsbeta1+
Target Milestone: mozilla0.9.7 → mozilla0.9.9
FYI, UI bug number is 52330
I can no longer use mozilla outside the office, because I cannot target an ssh tunnel. This is serious, as in mailer not functional, show stopper stuff to me. my laptop is now several pounds of scrap metal. By all means, add GUI configuration to this feature at some point, but in the mean time, please fix it, so that something functional is available. As things stand, I can no longer use your application.
Peter, bug 52330 also has patch attached. But I think we have nothing else but wait until 0.9.8 is out, since mailnews currently has other priorities (perf & footprinf), so there is no much chances that these patches will be reviewed/checked in, sorry.
Obviously, this is a bad regression that blocks some people from using the product altogether. Furthermore, there is a patch. As I interpret it, the mailnews semi lock-down is supposed to accept *regression* fixes. There's a fix attached to the bug, can someone familiar with the code please review it so kaie can check it in?
I wonder if the user could temporarily get around the problem by editing the prefs file. If so how? (for me it's also quite unpleasant bug)
I don't think editing the prefs can help. There is currently no separate storage for storing the port number. It is just that the underlying network layer is able to deal with host name strings that include a :port number. Whatever you put in the prefs, the broken code will add :25, which will make the underlying network layer connect to port 25.
Showstopper for me also, please fix soon, won't mind a temporary fix. Can't be to hard to do? //Peter
It used to work, 0.9.5 broke it, it is a showstopper for me and 0.99 is too far away.
*** Bug 98372 has been marked as a duplicate of this bug. ***
As I noted in bug 52330, patch for bug 52330 could be split into 2 parts, thus allowing for the back end of the patch to be applied first, solving that bug and preventing us to put a hack here (even the hack seems safe). One will then be able to use the preferences to solve the problem. I suggest then to vote for bug 52330, (for the backend part). Backend part seems pretty safe even if its bigger than this patch. It is merely some a couple of get/set, and one new parameter added to some methods.
This bug makes mozilla useless for me - at home and at work. As there is already a patch, 0.9.9 is too far away.
FYI, the attached patch works with the mozilla 0.9.6 source for those who can compile themselves.
Bug 52330 is the same as this one. Also, it has a better patch. Marking as duplicate. Please reopen if you don't agree. *** This bug has been marked as a duplicate of 52330 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified Duplicate.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: