~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to libksieve/kmanagesieve/session.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    02110-1301, USA.
19
19
*/
20
20
 
 
21
//krazy:excludeall=null since used by SASL (C library)
 
22
 
21
23
#include "session.h"
22
24
#include "response.h"
23
25
#include "sievejob_p.h"
165
167
    case PostTlsCapabilities:
166
168
      if ( response.type() == Response::Action ) {
167
169
        if ( response.operationSuccessful() ) {
168
 
          kDebug() << "Sieve server ready & awaiting authentication." << endl;
 
170
          kDebug() << "Sieve server ready & awaiting authentication.";
169
171
          if ( m_state == PreTlsCapabilities ) {
170
172
            if ( !allowUnencrypted() && !QSslSocket::supportsSsl() ) {
171
173
              m_errorMsg = KIO::buildErrorString( KIO::ERR_SLAVE_DEFINED, i18n("Can not use TLS since the underlying Qt library does not support it.") );
196
198
            startAuthentication();
197
199
          }
198
200
        } else {
199
 
          kDebug() << "Unknown action " << response.action() << "." << endl;
 
201
          kDebug() << "Unknown action " << response.action() << ".";
200
202
        }
201
203
      } else if ( response.key() == "IMPLEMENTATION" ) {
202
204
        m_implementation = QString::fromLatin1( response.value() );
212
214
        kDebug() << "Server supports TLS";
213
215
        m_supportsStartTls = true;
214
216
      } else {
215
 
        kDebug() << "Unrecognised key " << response.key() << endl;
 
217
        kDebug() << "Unrecognised key " << response.key();
216
218
      }
217
219
      break;
218
220
    case StartTls: