KIMAP
setmetadatajob.cpp
105 // TODO: Test if a server can really return more then one untagged NO response. If not, no need to OR the error codes
109 setErrorText(i18n("%1 failed, server replied: %2", d->m_name, QLatin1String(response.toString().constData())));
113 } else if (responseBa == "[ANNOTATEMORE TOOBIG]" || responseBa.startsWith("[METADATA MAXSIZE")) { // krazy:exclude=strings
129 setErrorText(i18n("%1 failed, server replied: %2", d->m_name, QLatin1String(response.toString().constData())));
155 if (d->serverCapability == Annotatemore && (name.startsWith("/shared") || name.startsWith("/private"))) {
KIMAP_EXPORT QString encodeImapFolderName(const QString &src)
Converts an Unicode IMAP mailbox to a QString which can be used in IMAP communication.
Definition: rfccodecs.cpp:180
void setErrorText(const QString &errorText)
QByteArray::const_iterator constBegin() const const
QByteArray number(int n, int base)
void addMetaData(const QByteArray &name, const QByteArray &value)
Adds a metadata entry or attribute to the list of modifications to make.
Definition: setmetadatajob.cpp:152
qlonglong toLongLong(bool *ok, int base) const const
QString::const_iterator constBegin() const const
QString i18n(const char *text, const TYPE &arg...)
bool startsWith(const QByteArray &ba) const const
@ Metadata
Used to indicate that the server supports the RFC 5464 version of the extension.
Definition: metadatajobbase.h:54
QByteArray & replace(int pos, int len, const char *after)
MetaDataErrors metaDataErrors() const
The metadata errors received from the server.
Definition: setmetadatajob.cpp:170
KIMAP_DEPRECATED void setEntry(const QByteArray &entry)
Sets the metadata entry name to operate on (in Annotatemore mode)
Definition: setmetadatajob.cpp:164
@ TooMany
Cannot add a new metadata item, because the limit has already been reached.
Definition: setmetadatajob.h:168
const char * name(StandardAction id)
@ Annotatemore
Used to indicate that the server supports the draft-daboo-imap-annotatemore-07 version of the extensi...
Definition: metadatajobbase.h:61
int size() const const
void emitResult()
int length() const const
Provides handlers for various RFC/MIME encodings.
void setError(int errorCode)
Q_D(Todo)
Base class for jobs that operate on mailbox metadata.
Definition: metadatajobbase.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:51:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:51:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.