summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/pop3wrapper.cpp5
-rw-r--r--noncore/net/mail/pop3wrapper.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp
index 6decb6a..1538d50 100644
--- a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp
@@ -73,7 +73,12 @@ void POP3wrapper::login()
73 m_pop3 = mailpop3_new( 200, &pop3_progress ); 73 m_pop3 = mailpop3_new( 200, &pop3_progress );
74 74
75 // connect 75 // connect
76 if (account->getSSL()) {
77 err = mailpop3_ssl_connect( m_pop3, (char*)server, port );
78 } else {
76 err = mailpop3_socket_connect( m_pop3, (char *) server, port ); 79 err = mailpop3_socket_connect( m_pop3, (char *) server, port );
80 }
81
77 if ( err != MAILPOP3_NO_ERROR ) { 82 if ( err != MAILPOP3_NO_ERROR ) {
78 qDebug( "pop3: error connecting to %s\n reason: %s", server, 83 qDebug( "pop3: error connecting to %s\n reason: %s", server,
79 m_pop3->response ); 84 m_pop3->response );
diff --git a/noncore/net/mail/pop3wrapper.cpp b/noncore/net/mail/pop3wrapper.cpp
index 6decb6a..1538d50 100644
--- a/noncore/net/mail/pop3wrapper.cpp
+++ b/noncore/net/mail/pop3wrapper.cpp
@@ -73,7 +73,12 @@ void POP3wrapper::login()
73 m_pop3 = mailpop3_new( 200, &pop3_progress ); 73 m_pop3 = mailpop3_new( 200, &pop3_progress );
74 74
75 // connect 75 // connect
76 if (account->getSSL()) {
77 err = mailpop3_ssl_connect( m_pop3, (char*)server, port );
78 } else {
76 err = mailpop3_socket_connect( m_pop3, (char *) server, port ); 79 err = mailpop3_socket_connect( m_pop3, (char *) server, port );
80 }
81
77 if ( err != MAILPOP3_NO_ERROR ) { 82 if ( err != MAILPOP3_NO_ERROR ) {
78 qDebug( "pop3: error connecting to %s\n reason: %s", server, 83 qDebug( "pop3: error connecting to %s\n reason: %s", server,
79 m_pop3->response ); 84 m_pop3->response );