author | alwin <alwin> | 2004-01-06 10:50:04 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-06 10:50:04 (UTC) |
commit | 37ac44d5582a5c4793482ed544a38a014c5fe8a2 (patch) (side-by-side diff) | |
tree | 9dea89a03d7d3ebf68190ff55848b6756a4b47d6 | |
parent | d462abe3a8f908111eeb9bdf1b2675a0bc322edc (diff) | |
download | opie-37ac44d5582a5c4793482ed544a38a014c5fe8a2.zip opie-37ac44d5582a5c4793482ed544a38a014c5fe8a2.tar.gz opie-37ac44d5582a5c4793482ed544a38a014c5fe8a2.tar.bz2 |
hopefully fixed problems when logging into pop3 servers
it seems, that APOP login isn't working
-rw-r--r-- | noncore/net/mail/libmailwrapper/pop3wrapper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ -135,13 +135,15 @@ void POP3wrapper::login() pass = account->getPassword().latin1(); } 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); if (m_folder==0) { Global::statusMessage(tr("Error initializing folder")); @@ -154,13 +156,12 @@ void POP3wrapper::login() Global::statusMessage(tr("Error initializing folder")); mailfolder_free(m_folder); m_folder = 0; mailstorage_free(m_pop3); m_pop3 = 0; } - qDebug( "POP3: logged in!" ); } void POP3wrapper::logout() { int err = MAILPOP3_NO_ERROR; if ( m_pop3 == NULL ) return; |