Changeset View
Changeset View
Standalone View
Standalone View
resources/imap/settings.cpp
Show All 24 Lines | |||||
235 | { | 235 | { | ||
236 | account->setServer(imapServer()); | 236 | account->setServer(imapServer()); | ||
237 | if (imapPort() >= 0) { | 237 | if (imapPort() >= 0) { | ||
238 | account->setPort(imapPort()); | 238 | account->setPort(imapPort()); | ||
239 | } | 239 | } | ||
240 | 240 | | |||
241 | account->setUserName(userName()); | 241 | account->setUserName(userName()); | ||
242 | account->setSubscriptionEnabled(subscriptionEnabled()); | 242 | account->setSubscriptionEnabled(subscriptionEnabled()); | ||
243 | account->setUseNetworkProxy(useProxy()); | ||||
243 | 244 | | |||
244 | const QString encryption = safety(); | 245 | const QString encryption = safety(); | ||
245 | if (encryption == QLatin1String("SSL")) { | 246 | if (encryption == QLatin1String("SSL")) { | ||
246 | account->setEncryptionMode(KIMAP::LoginJob::SSLorTLS); | 247 | account->setEncryptionMode(KIMAP::LoginJob::SSLorTLS); | ||
247 | } else if (encryption == QLatin1String("STARTTLS")) { | 248 | } else if (encryption == QLatin1String("STARTTLS")) { | ||
248 | account->setEncryptionMode(KIMAP::LoginJob::STARTTLS); | 249 | account->setEncryptionMode(KIMAP::LoginJob::STARTTLS); | ||
249 | } else { | 250 | } else { | ||
250 | account->setEncryptionMode(KIMAP::LoginJob::Unencrypted); | 251 | account->setEncryptionMode(KIMAP::LoginJob::Unencrypted); | ||
Show All 24 Lines |