Closed Bug 17212 Opened 25 years ago Closed 25 years ago

[DOGFOOD] Need to set port when migrating IMAP servers w/non-default port

Categories

(MailNews Core :: Profile Migration, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: alecf, Assigned: sspitzer)

References

Details

(Whiteboard: [PDT-] Verified Win32 & Linux, can't verify MAC)

In the 4.x world, we described IMAP servers as "hostname:port" in the prefs, so
you could have a port like:
"imap.server.myserver:1234.username" = "alecf"

When this gets migrated over to 5.0, this (currently) becomes:

"mail.servers.server4.hostname" = "myserver:1234"

With the recent URI parsing cleanup, hostnames in this format get confused
because FindServer() is looking for "myserver"


This means that any place we depend on FindServer(), we fail.

This should be migrated over to preferences like:
"mail.servers.server4.hostname" = "myserver"
"mail.servers.server4.port" = "1234"

You'll have to add a new "port" attribute to nsIMsgIncomingServer as well.
(the signed-ness is the same as the one in nsIURI/nsIURL)
QA Contact: gbush → laurel
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Target Milestone: M11
accepting.

marking m11 and all.
I'm not sure what symptoms are caused by this IMAP port issue, but I tried a
non-secure irregular port news server with migration and there is a blank folder
pane afterwards (and lasts throughout relaunch(es)).  I logged bug #17222 for
the news port migration problem.
Whiteboard: [PDT-]
For most users, the port number is fixed...this is not believed to be dogfood.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
mail.server.server1.port is now set upon migration of IMAP servers with
irregular port numbers.

OK using 1999-11-01-08m11 commercial build on linux 6.0
OK using 1999-11-02-10m11 commerical build on NT 4.0
migration currently broken for mac (ref bug #16305)
Whiteboard: [PDT-] → [PDT-] Verified Win32 & Linux, can't verify MAC
Status: RESOLVED → VERIFIED
Can't verify on Mac using the edit server name trick (mail server name field
won't allow a colon":" for appending port), so will assume it's okay on mac.

port pref migrated fine for news server, so will assume it would do so for mail.

Marking verified.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.