summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/pop3wrapper.cpp5
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
@@ -137,9 +137,11 @@ void POP3wrapper::login()
137 137
138 bool ssl = account->getSSL(); 138 bool ssl = account->getSSL();
139 139
140 m_pop3=mailstorage_new(NULL); 140 m_pop3=mailstorage_new(NULL);
141 pop3_mailstorage_init(m_pop3,(char*)server,port,NULL,CONNECTION_TYPE_TRY_STARTTLS,POP3_AUTH_TYPE_TRY_APOP, 141 int conntype = (ssl?CONNECTION_TYPE_TLS:CONNECTION_TYPE_PLAIN);
142
143 pop3_mailstorage_init(m_pop3,(char*)server,port,NULL,conntype,POP3_AUTH_TYPE_PLAIN,
142 (char*)user,(char*)pass,0,0,0); 144 (char*)user,(char*)pass,0,0,0);
143 145
144 m_folder = mailfolder_new(m_pop3, NULL, NULL); 146 m_folder = mailfolder_new(m_pop3, NULL, NULL);
145 147
@@ -156,9 +158,8 @@ void POP3wrapper::login()
156 m_folder = 0; 158 m_folder = 0;
157 mailstorage_free(m_pop3); 159 mailstorage_free(m_pop3);
158 m_pop3 = 0; 160 m_pop3 = 0;
159 } 161 }
160 qDebug( "POP3: logged in!" );
161} 162}
162 163
163void POP3wrapper::logout() 164void POP3wrapper::logout()
164{ 165{