20#include "expungejob.h"
22#include "kimap_debug.h"
30class ExpungeJobPrivate :
public JobPrivate
33 ExpungeJobPrivate(
Session *session,
const QString &name) : JobPrivate(session,
name) { }
34 ~ExpungeJobPrivate() { }
41using namespace KIMAP2;
43ExpungeJob::ExpungeJob(
Session *session)
44 : Job(*new ExpungeJobPrivate(session,
"Expunge"))
48ExpungeJob::~ExpungeJob()
52void ExpungeJob::doStart()
55 d->sendCommand(
"EXPUNGE", {});
58void ExpungeJob::handleResponse(
const Message &response)
62 if (handleErrorReplies(response) == NotHandled) {
63 if (response.content.size() >= 3) {
64 QByteArray code = response.content[2].toString();
65 if (code ==
"EXPUNGE") {
69 int id = s.
toInt(&ok);
78 qCDebug(KIMAP2_LOG) <<
"Unhandled response: " << response.toString().constData();
Expunges the deleted messages in the selected mailbox.
QString name(GameStandardAction id)
int toInt(bool *ok, int base) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:56:35 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.