Default port for imap and imaps. Before after typing imap://server/ in

konqueror, slave would try to connect to port 0.

Cherry-picked from: b35c00016dd671aca964907d76aa5a2ed4bc15cc

Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
pull/29/head
Jakub Stachowski 17 years ago committed by Michele Calgaro
parent fa8bdd097a
commit 4aacbe5b9e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -95,6 +95,8 @@ extern "C" {
#define IMAP_PROTOCOL "imap"
#define IMAP_SSL_PROTOCOL "imaps"
#define IMAP_PORT 143
#define IMAPS_PORT 993
using namespace TDEIO;
@ -631,7 +633,10 @@ IMAP4Protocol::setHost (const TQString & _host, int _port,
if (!myHost.isEmpty ())
closeConnection ();
myHost = _host;
myPort = _port;
if (_port == 0)
myPort = (mySSL) ? IMAPS_PORT : IMAP_PORT;
else
myPort = _port;
myUser = _user;
myPass = _pass;
}

Loading…
Cancel
Save