From 37ac44d5582a5c4793482ed544a38a014c5fe8a2 Mon Sep 17 00:00:00 2001 From: alwin Date: Tue, 06 Jan 2004 10:50:04 +0000 Subject: hopefully fixed problems when logging into pop3 servers it seems, that APOP login isn't working --- (limited to 'noncore') diff --git a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp index 72c145b..ec4dcd2 100644 --- a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp +++ b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp @@ -138,7 +138,9 @@ void POP3wrapper::login() bool ssl = account->getSSL(); m_pop3=mailstorage_new(NULL); - pop3_mailstorage_init(m_pop3,(char*)server,port,NULL,CONNECTION_TYPE_TRY_STARTTLS,POP3_AUTH_TYPE_TRY_APOP, + int conntype = (ssl?CONNECTION_TYPE_TLS:CONNECTION_TYPE_PLAIN); + + pop3_mailstorage_init(m_pop3,(char*)server,port,NULL,conntype,POP3_AUTH_TYPE_PLAIN, (char*)user,(char*)pass,0,0,0); m_folder = mailfolder_new(m_pop3, NULL, NULL); @@ -157,7 +159,6 @@ void POP3wrapper::login() mailstorage_free(m_pop3); m_pop3 = 0; } - qDebug( "POP3: logged in!" ); } void POP3wrapper::logout() -- cgit v0.9.0.2