allow imap to support port numbers in the pref file

r=mscott
bugged by=pavlov
This commit is contained in:
alecf%netscape.com 2000-01-18 02:34:08 +00:00
parent d0f1bda271
commit 79b4912975

View File

@ -608,7 +608,10 @@ nsresult nsImapProtocol::SetupWithUrl(nsIURI * aURL, nsISupports* aConsumer)
if ( m_runningUrl && !m_channel /* and we don't have a transport yet */)
{
// extract the file name and create a file transport...
PRInt32 port = IMAP_PORT;
PRInt32 port=-1;
m_server->GetPort(&port);
if (port <= 0) port = IMAP_PORT;
nsXPIDLCString hostName;
NS_WITH_SERVICE(nsISocketTransportService, socketService, kSocketTransportServiceCID, &rv);