KSieveCore::Util Namespace

Header: #include <util.h>
CMake: find_package(KPim6KSieveCore REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::KSieveCore)

Functions

bool allowOutOfOfficeSettings()
bool checkOutOfOfficeOnStartup()
bool hasKep14Support(const QStringList &sieveCapabilities, const QStringList &availableScripts, const QString &activeScript)
bool isKep14ProtectedName(const QString &scriptName)
QList<KSieveCore::SieveImapInstance> sieveImapInstances()

Detailed Description

The Util namespace contains a collection of helper functions use in various places.

Function Documentation

bool Util::allowOutOfOfficeSettings()

Returns whether the functionality of vacation sieve script editing shall be available at all.

bool Util::checkOutOfOfficeOnStartup()

Returns whether the availability of a vacation sieve script shall be checked at the start up of an application.

bool Util::hasKep14Support(const QStringList &sieveCapabilities, const QStringList &availableScripts, const QString &activeScript)

Checks if a server has KEP:14 support

bool Util::isKep14ProtectedName(const QString &scriptName)

Is the given scriptName a protected KEP:14 name, that a normal user should not touch directly. it tests against MASTER, USER and MANAGEMENT script

QList<KSieveCore::SieveImapInstance> Util::sieveImapInstances()

Returns the list of configured IMAP agent instances.