Hello community,

here is the log from the commit of package kimap for openSUSE:Factory checked 
in at 2016-08-29 14:40:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kimap (Old)
 and      /work/SRC/openSUSE:Factory/.kimap.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kimap"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kimap/kimap.changes      2016-07-21 
07:50:44.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kimap.new/kimap.changes 2016-08-29 
14:40:22.000000000 +0200
@@ -1,0 +2,16 @@
+Fri Aug 12 10:18:15 UTC 2016 - [email protected]
+
+- Update to KDE Applications 16.08.0
+   * KDE Applications 16.08.0
+   * https://www.kde.org/announcements/announce-applications-16.08.0.php
+
+
+-------------------------------------------------------------------
+Mon Aug  8 15:05:51 UTC 2016 - [email protected]
+
+- Update to KDE Applications 16.07.90
+   * KDE Applications 16.07.90 (16.08-RC)
+   * https://www.kde.org/announcements/announce-applications-16.07.90.php
+
+
+-------------------------------------------------------------------

Old:
----
  kimap-16.04.3.tar.xz

New:
----
  kimap-16.08.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kimap.spec ++++++
--- /var/tmp/diff_new_pack.UG1z4V/_old  2016-08-29 14:40:25.000000000 +0200
+++ /var/tmp/diff_new_pack.UG1z4V/_new  2016-08-29 14:40:25.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           kimap
-Version:        16.04.3
+Version:        16.08.0
 Release:        0
 %define kf5_version 5.19.0
 Summary:        KDE PIM Libraries: IMAP library

++++++ kimap-16.04.3.tar.xz -> kimap-16.08.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kimap-16.04.3/CMakeLists.txt 
new/kimap-16.08.0/CMakeLists.txt
--- old/kimap-16.04.3/CMakeLists.txt    2016-06-15 06:38:59.000000000 +0200
+++ new/kimap-16.08.0/CMakeLists.txt    2016-08-06 20:10:39.000000000 +0200
@@ -3,7 +3,8 @@
 project(KIMAP)
 
 # ECM setup
-find_package(ECM 5.19.0 CONFIG REQUIRED)
+set(KF5_VERSION "5.23.0")
+find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${KIMAP_SOURCE_DIR}/cmake)
 
 include(GenerateExportHeader)
@@ -17,9 +18,11 @@
 include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
 include(ECMQtDeclareLoggingCategory)
 
-set(KF5_VERSION "5.19.0")
-set(KIMAP_LIB_VERSION "5.2.3")
-set(KMIME_LIBS_VERSION "5.2.0")
+
+set(PIM_VERSION "5.3.0")
+
+set(KIMAP_LIB_VERSION ${PIM_VERSION})
+set(KMIME_LIBS_VERSION "5.3.0")
 ecm_setup_version(${KIMAP_LIB_VERSION} VARIABLE_PREFIX KIMAP
                         VERSION_HEADER 
"${CMAKE_CURRENT_BINARY_DIR}/kimap_version.h"
                         PACKAGE_VERSION_FILE 
"${CMAKE_CURRENT_BINARY_DIR}/KF5IMAPConfigVersion.cmake"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kimap-16.04.3/autotests/CMakeLists.txt 
new/kimap-16.08.0/autotests/CMakeLists.txt
--- old/kimap-16.04.3/autotests/CMakeLists.txt  2016-06-15 06:38:59.000000000 
+0200
+++ new/kimap-16.08.0/autotests/CMakeLists.txt  2016-08-06 20:10:39.000000000 
+0200
@@ -37,6 +37,7 @@
   listjobtest
   storejobtest
   imapsettest
+  idjobtest
   idlejobtest
   quotarootjobtest
   searchjobtest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kimap-16.04.3/autotests/idjobtest.cpp 
new/kimap-16.08.0/autotests/idjobtest.cpp
--- old/kimap-16.04.3/autotests/idjobtest.cpp   1970-01-01 01:00:00.000000000 
+0100
+++ new/kimap-16.08.0/autotests/idjobtest.cpp   2016-08-06 20:10:39.000000000 
+0200
@@ -0,0 +1,71 @@
+/*
+   Copyright (c) 2015 Christian Mollekopf <[email protected]>
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
+*/
+
+#include "kimaptest/fakeserver.h"
+#include "kimap/session.h"
+#include "kimap/idjob.h"
+
+#include <QTcpSocket>
+#include <QtTest>
+
+typedef QMap<QByteArray, QByteArray> ArrayMap;
+Q_DECLARE_METATYPE(ArrayMap)
+
+class IdJobTest: public QObject {
+  Q_OBJECT
+
+private Q_SLOTS:
+
+void testId_data() {
+    QTest::addColumn<QList<QByteArray> >("scenario");
+    QTest::addColumn<ArrayMap>("values");
+    QList<QByteArray> scenario;
+    scenario << "S: * PREAUTH"
+             << "C: A000001 ID (\"name\" \"clientid\")"
+             << "S: * ID NIL"
+             << "S: A000001 OK ID completed";
+  
+    ArrayMap values;
+    values.insert("name", "clientid");
+    QTest::newRow("good") << scenario << values;
+}
+
+void testId()
+{
+    QFETCH(QList<QByteArray>, scenario);
+    QFETCH(ArrayMap, values);
+
+    FakeServer fakeServer;
+    fakeServer.setScenario(scenario);
+    fakeServer.startAndWait();
+    KIMAP::Session session(QStringLiteral("127.0.0.1"), 5989);
+
+    KIMAP::IdJob *job = new KIMAP::IdJob(&session);
+    foreach (const QByteArray &key, values.keys()) {
+        job->setField(key, values.value(key));
+    }
+    bool result = job->exec();
+    QVERIFY(result);
+    fakeServer.quit();
+}
+
+};
+
+QTEST_GUILESS_MAIN(IdJobTest)
+
+#include "idjobtest.moc"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kimap-16.04.3/src/CMakeLists.txt 
new/kimap-16.08.0/src/CMakeLists.txt
--- old/kimap-16.04.3/src/CMakeLists.txt        2016-06-15 06:38:59.000000000 
+0200
+++ new/kimap-16.08.0/src/CMakeLists.txt        2016-08-06 20:10:39.000000000 
+0200
@@ -20,6 +20,7 @@
    getmetadatajob.cpp
    getquotajob.cpp
    getquotarootjob.cpp
+   idjob.cpp
    idlejob.cpp
    imapset.cpp
    imapstreamparser.cpp
@@ -94,6 +95,7 @@
   GetMetaDataJob
   GetQuotaJob
   GetQuotaRootJob
+  IdJob
   IdleJob
   ImapSet
   Job
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kimap-16.04.3/src/copyjob.cpp 
new/kimap-16.08.0/src/copyjob.cpp
--- old/kimap-16.04.3/src/copyjob.cpp   2016-06-15 06:38:59.000000000 +0200
+++ new/kimap-16.08.0/src/copyjob.cpp   2016-08-06 20:10:39.000000000 +0200
@@ -33,7 +33,7 @@
 class CopyJobPrivate : public JobPrivate
 {
 public:
-    CopyJobPrivate(Session *session, const QString &name) : 
JobPrivate(session, name) { }
+    CopyJobPrivate(Session *session, const QString &name) : 
JobPrivate(session, name), uidBased(false) { }
     ~CopyJobPrivate() { }
 
     QString mailBox;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kimap-16.04.3/src/idjob.cpp 
new/kimap-16.08.0/src/idjob.cpp
--- old/kimap-16.04.3/src/idjob.cpp     1970-01-01 01:00:00.000000000 +0100
+++ new/kimap-16.08.0/src/idjob.cpp     2016-08-06 20:10:39.000000000 +0200
@@ -0,0 +1,76 @@
+/*
+    Copyright (c) 2015 Christian Mollekopf <[email protected]>
+
+    This library is free software; you can redistribute it and/or modify it
+    under the terms of the GNU Library General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or (at your
+    option) any later version.
+
+    This library is distributed in the hope that it will be useful, but WITHOUT
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
+    License for more details.
+
+    You should have received a copy of the GNU Library General Public License
+    along with this library; see the file COPYING.LIB.  If not, write to the
+    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+    02110-1301, USA.
+*/
+
+#include "idjob.h"
+
+#include <KLocalizedString>
+
+#include "job_p.h"
+#include "message_p.h"
+#include "session_p.h"
+
+namespace KIMAP
+{
+    class IdJobPrivate : public JobPrivate
+    {
+    public:
+        IdJobPrivate(Session *session,  const QString& name) : 
JobPrivate(session, name) { }
+        ~IdJobPrivate() { }
+  
+        QMap<QByteArray, QByteArray> fields;
+    };
+}
+
+using namespace KIMAP;
+
+IdJob::IdJob(Session *session)
+    : Job(*new IdJobPrivate(session, i18n("Id")))
+{
+}
+
+IdJob::~IdJob()
+{
+}
+
+void IdJob::setField(const QByteArray &name, const QByteArray &value)
+{
+    Q_D(IdJob);
+    d->fields.insert(name, value);
+}
+
+void IdJob::doStart()
+{
+    Q_D(IdJob);
+    QByteArray command = "ID";
+    command += " (";
+    foreach (const QByteArray &name, d->fields.keys()) {
+        command += "\"" + name + "\" \"" + d->fields.value(name) + "\" ";
+    }
+    command.chop(1);
+    command += ")";
+    d->tags << d->sessionInternal()->sendCommand(command);
+}
+
+void IdJob::handleResponse(const Message &response)
+{
+    Q_D(IdJob);
+    if (handleErrorReplies(response) == NotHandled) {
+        // Ignore the response
+    }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kimap-16.04.3/src/idjob.h 
new/kimap-16.08.0/src/idjob.h
--- old/kimap-16.04.3/src/idjob.h       1970-01-01 01:00:00.000000000 +0100
+++ new/kimap-16.08.0/src/idjob.h       2016-08-06 20:10:39.000000000 +0200
@@ -0,0 +1,58 @@
+/*
+    Copyright (c) 2015 Christian Mollekopf <[email protected]>
+
+    This library is free software; you can redistribute it and/or modify it
+    under the terms of the GNU Library General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or (at your
+    option) any later version.
+
+    This library is distributed in the hope that it will be useful, but WITHOUT
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
+    License for more details.
+
+    You should have received a copy of the GNU Library General Public License
+    along with this library; see the file COPYING.LIB.  If not, write to the
+    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+    02110-1301, USA.
+*/
+
+#ifndef KIMAP_IDJOB_H
+#define KIMAP_IDJOB_H
+
+#include "kimap_export.h"
+
+#include "job.h"
+
+namespace KIMAP {
+
+class Session;
+struct Message;
+class IdJobPrivate;
+
+/**
+ * Reports client id.
+ *
+ * This job can be run in any open session.
+ */
+class KIMAP_EXPORT IdJob : public Job
+{
+    Q_OBJECT
+    Q_DECLARE_PRIVATE(IdJob)
+
+    friend class SessionPrivate;
+
+public:
+    IdJob( Session *session);
+    virtual ~IdJob();
+
+    void setField(const QByteArray &name, const QByteArray &field);
+
+protected:
+    void doStart() Q_DECL_OVERRIDE;
+    void handleResponse(const Message &response) Q_DECL_OVERRIDE;
+};
+
+}
+
+#endif


Reply via email to