Projects
Kolab:Winterfell
kolab-utils
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 25
View file
kolab-utils.spec
Changed
@@ -10,7 +10,7 @@ %endif Name: kolab-utils -Version: 3.1.3 +Version: 3.1.4 Release: 1%{?dist} Summary: Kolab Utilities @@ -88,6 +88,10 @@ %attr(0750,root,%{httpd_group}) %dir %{_sharedstatedir}/kolab-freebusy %changelog +* Mon Sep 5 2016 Christian Mollekopf <mollekopf@kolabsys.com> - 3.1.4-1 +- Release version 3.1.3 +- Added --shared option to format checker + * Fri Sep 2 2016 Christian Mollekopf <mollekopf@kolabsys.com> - 3.1.3-1 - Release version 3.1.3 - Format checking capabilities in kolab-formatupgrade
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +kolab-utils (3.1.4-0~kolab1) unstable; urgency=low + + * Release of version 3.1.4 + + -- Christian Mollekopf (Kolab Systems) <mollekopf@kolabsys.com> Mon, 5 Sep 2016 14:00:55 +0100 + kolab-utils (3.1.3-0~kolab1) unstable; urgency=low * Release of version 3.1.3
View file
kolab-utils-3.1.3.tar.gz/lib/jobs/findkolabfoldersjob.cpp -> kolab-utils.3.1.4.tar.gz/lib/jobs/findkolabfoldersjob.cpp
Changed
@@ -26,12 +26,12 @@ #include <kolabdefinitions.h> #include <errorhandler.h> -FindKolabFoldersJob::FindKolabFoldersJob(const QStringList &serverCapabilities, const QList<KIMAP::MailBoxDescriptor> &pN, const QList<KIMAP::MailBoxDescriptor> &excluded, KIMAP::Session* session, QObject* parent) +FindKolabFoldersJob::FindKolabFoldersJob(const QStringList &serverCapabilities, const QList<KIMAP::MailBoxDescriptor> &fetchedNamespaces, const QList<KIMAP::MailBoxDescriptor> &excluded, KIMAP::Session* session, QObject* parent) : KJob(parent), m_session(session), m_metadataRetrieveJobs(0), m_mailBoxReceiveDone(false), -m_personalNamespaces(pN), +m_fetchedNamespaces(fetchedNamespaces), m_serverCapabilities(serverCapabilities) { foreach (const KIMAP::MailBoxDescriptor &desc, excluded) { @@ -47,7 +47,7 @@ // } KIMAP::ListJob *fullListJob = new KIMAP::ListJob( m_session ); fullListJob->setOption( KIMAP::ListJob::IncludeUnsubscribed ); - fullListJob->setQueriedNamespaces( m_personalNamespaces ); + fullListJob->setQueriedNamespaces( m_fetchedNamespaces ); connect( fullListJob, SIGNAL(mailBoxesReceived(QList<KIMAP::MailBoxDescriptor>,QList<QList<QByteArray> >)), this, SLOT(onMailBoxesReceived(QList<KIMAP::MailBoxDescriptor>,QList<QList<QByteArray> >)) ); connect( fullListJob, SIGNAL(result(KJob*)), SLOT(onMailBoxesReceiveDone(KJob*)) );
View file
kolab-utils-3.1.3.tar.gz/lib/jobs/findkolabfoldersjob.h -> kolab-utils.3.1.4.tar.gz/lib/jobs/findkolabfoldersjob.h
Changed
@@ -35,7 +35,7 @@ { Q_OBJECT public: - explicit FindKolabFoldersJob(const QStringList &serverCapabilities, const QList<KIMAP::MailBoxDescriptor> &personalNamespaces, const QList<KIMAP::MailBoxDescriptor> &excluded, KIMAP::Session *session, QObject* parent = 0); + explicit FindKolabFoldersJob(const QStringList &serverCapabilities, const QList<KIMAP::MailBoxDescriptor> &fetchedNamespaces, const QList<KIMAP::MailBoxDescriptor> &excluded, KIMAP::Session *session, QObject* parent = 0); virtual void start(); QMultiHash<QString, QString> getKolabFolders(); QMultiHash<QString, QString> getAllFolders(); @@ -52,7 +52,7 @@ QHash<QString, QString> m_allFolders; int m_metadataRetrieveJobs; bool m_mailBoxReceiveDone; - QList<KIMAP::MailBoxDescriptor> m_personalNamespaces; + QList<KIMAP::MailBoxDescriptor> m_fetchedNamespaces; QStringList m_excludedNamespaces; QStringList m_serverCapabilities;
View file
kolab-utils-3.1.3.tar.gz/lib/jobs/probeimapserverjob.cpp -> kolab-utils.3.1.4.tar.gz/lib/jobs/probeimapserverjob.cpp
Changed
@@ -72,7 +72,8 @@ KIMAP::NamespaceJob *nsJob = qobject_cast<KIMAP::NamespaceJob*>( job ); Q_ASSERT(nsJob); mPersonalNamespace = nsJob->personalNamespaces(); - mExcludedNamespace = nsJob->userNamespaces()+nsJob->sharedNamespaces(); + mExcludedNamespace = nsJob->userNamespaces() + nsJob->sharedNamespaces(); + mSharedNamespace = nsJob->sharedNamespaces(); emitResult(); } @@ -91,3 +92,8 @@ { return mExcludedNamespace; } + +QList< KIMAP::MailBoxDescriptor > ProbeIMAPServerJob::sharedNamespaces() const +{ + return mSharedNamespace; +}
View file
kolab-utils-3.1.3.tar.gz/lib/jobs/probeimapserverjob.h -> kolab-utils.3.1.4.tar.gz/lib/jobs/probeimapserverjob.h
Changed
@@ -37,6 +37,7 @@ QList<KIMAP::MailBoxDescriptor> personalNamespace() const; QList<KIMAP::MailBoxDescriptor> excludedNamespaces() const; + QList<KIMAP::MailBoxDescriptor> sharedNamespaces() const; QStringList capabilities() const; protected Q_SLOTS: @@ -48,6 +49,7 @@ QStringList mCapabilities; QList<KIMAP::MailBoxDescriptor> mPersonalNamespace; QList<KIMAP::MailBoxDescriptor> mExcludedNamespace; + QList<KIMAP::MailBoxDescriptor> mSharedNamespace; }; #endif
View file
kolab-utils-3.1.3.tar.gz/lib/jobs/probekolabserverjob.cpp -> kolab-utils.3.1.4.tar.gz/lib/jobs/probekolabserverjob.cpp
Changed
@@ -40,6 +40,11 @@ probeJob->start(); } +void ProbeKolabServerJob::fetchSharedFolders(bool fetch) +{ + mFetchSharedFolders = fetch; +} + void ProbeKolabServerJob::onProbeJobDone(KJob* job) { if (job->error()) { @@ -52,7 +57,13 @@ mCapabilities = probeJob->capabilities(); mPersonalNamespace = probeJob->personalNamespace(); mExcludedNamespace = probeJob->excludedNamespaces(); - FindKolabFoldersJob *findJob = new FindKolabFoldersJob(mCapabilities, mPersonalNamespace, mExcludedNamespace, mSession, this); + QList<KIMAP::MailBoxDescriptor> sharedNamespaces = probeJob->sharedNamespaces(); + FindKolabFoldersJob *findJob; + if (mFetchSharedFolders) { + findJob = new FindKolabFoldersJob(mCapabilities, probeJob->sharedNamespaces(), QList<KIMAP::MailBoxDescriptor>(), mSession, this); + } else { + findJob = new FindKolabFoldersJob(mCapabilities, probeJob->personalNamespace(), mExcludedNamespace, mSession, this); + } connect(findJob, SIGNAL(result(KJob*)), this, SLOT(findKolabFoldersDone(KJob*))); findJob->start(); }
View file
kolab-utils-3.1.3.tar.gz/lib/jobs/probekolabserverjob.h -> kolab-utils.3.1.4.tar.gz/lib/jobs/probekolabserverjob.h
Changed
@@ -39,6 +39,8 @@ QMultiHash<QString, QString> kolabFolders() const; QMultiHash<QString, QString> allFolders() const; + void fetchSharedFolders(bool fetch); + protected Q_SLOTS: void onProbeJobDone(KJob *job); void findKolabFoldersDone(KJob*); @@ -50,6 +52,7 @@ QList<KIMAP::MailBoxDescriptor> mExcludedNamespace; QMultiHash<QString, QString> mKolabFolders; QMultiHash<QString, QString> mAllFolders; + bool mFetchSharedFolders; }; #endif // PROBEKOLABSERVERJOB_H
View file
kolab-utils-3.1.3.tar.gz/upgradetool/imapupgradejob.cpp -> kolab-utils.3.1.4.tar.gz/upgradetool/imapupgradejob.cpp
Changed
@@ -122,6 +122,7 @@ } ProbeKolabServerJob *probeJob = new ProbeKolabServerJob(m_session, this); + probeJob->fetchSharedFolders(m_upgradeOptions.fetchSharedFolders); connect(probeJob, SIGNAL(result(KJob*)), this, SLOT(onProbeDone(KJob*))); probeJob->start(); } @@ -138,12 +139,7 @@ SequentialCompositeJob *seqJob = new SequentialCompositeJob(this); - QMultiHash<QString,QString> folders; - if (!m_upgradeOptions.validateMode) { - folders = capabilitiesJob->kolabFolders(); - } else { - folders = capabilitiesJob->allFolders(); - } + QMultiHash<QString,QString> folders = capabilitiesJob->kolabFolders(); QMultiHash<QString, QString>::const_iterator it; QMultiHash<QString, QString>::const_iterator end = folders.constEnd(); for (it = folders.constBegin(); it != end; ++it) {
View file
kolab-utils-3.1.3.tar.gz/upgradetool/upgradetool.cpp -> kolab-utils.3.1.4.tar.gz/upgradetool/upgradetool.cpp
Changed
@@ -21,8 +21,8 @@ #include <QtCore/QDir> #include <kdebug.h> #include <kglobal.h> -#include <kapplication.h> #include <kcmdlineargs.h> +#include <kcomponentdata.h> #include <errorhandler.h> #include "upgradeutilities.h" @@ -46,6 +46,7 @@ int main(int argc, char *argv[]) { + KComponentData componentData("upgradetool"); KCmdLineArgs::init(argc, argv, "upgradetool", "upgradetool",ki18n("upgradetool"), KOLABUTILS_VERSION); KCmdLineOptions options; @@ -66,12 +67,13 @@ options.add("validate", ki18n("Validate all kolab-objects and mails, and delete the ones that are invalid.")); options.add("delete", ki18n("Delete invalid objects from the server. Applies to validate mode.")); + options.add("shared", ki18n("Validate shared folders (This requires login with an admin account). Applies to validate mode.")); options.add("save-to <folder>", ki18n("Store invalid objects under the given path. Applies to validate mode.")); options.add("+[server/file]", ki18n("IMAP Server/File")); KCmdLineArgs::addCmdLineOptions( options ); - KApplication app; - + QCoreApplication app(argc, argv); + KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); Kolab::ObjectType overrideType = Kolab::InvalidObject; @@ -120,6 +122,13 @@ kDebug() << "Running in delete mode."; upgradeOptions.noDelete = false; } + if (!args->isSet("shared")) { + kDebug() << "Fetching user folders."; + upgradeOptions.fetchSharedFolders = false; + } else { + kDebug() << "Fetching shared folders."; + upgradeOptions.fetchSharedFolders = true; + } if (args->isSet("save-to")) { kDebug() << "Saving faulty messages to: " << args->getOption("save-to");
View file
kolab-utils-3.1.3.tar.gz/upgradetool/upgradeutilities.h -> kolab-utils.3.1.4.tar.gz/upgradetool/upgradeutilities.h
Changed
@@ -36,7 +36,8 @@ fixUtcIncidencesWithOffset(false), fixUtcIncidencesOffset(0), validateMode(false), - noDelete(false) + noDelete(false), + fetchSharedFolders(false) { } @@ -49,6 +50,7 @@ bool validateMode; bool noDelete; + bool fetchSharedFolders; QString saveTo; };
View file
kolab-utils.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-utils Binary: kolab-utils Architecture: any -Version: 3.1.2-0~kolab1 +Version: 3.1.4-0~kolab1 Maintainer: Paul Klos <kolab@klos2day.nl> Homepage: http://git.kolab.org/kolab-utils Standards-Version: 3.9.3 @@ -21,5 +21,5 @@ Package-List: kolab-utils deb libs optional Files: - 00000000000000000000000000000000 0 kolab-utils-3.1.2.tar.gz + 00000000000000000000000000000000 0 kolab-utils-3.1.4.tar.gz 00000000000000000000000000000000 0 debian.tar.gz
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.