summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/imapserverproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/imapresource/imapserverproxy.cpp')
-rw-r--r--examples/imapresource/imapserverproxy.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/imapresource/imapserverproxy.cpp b/examples/imapresource/imapserverproxy.cpp
index 08001d9..ce379de 100644
--- a/examples/imapresource/imapserverproxy.cpp
+++ b/examples/imapresource/imapserverproxy.cpp
@@ -32,6 +32,7 @@
32#include <KIMAP2/CapabilitiesJob> 32#include <KIMAP2/CapabilitiesJob>
33#include <KIMAP2/SearchJob> 33#include <KIMAP2/SearchJob>
34#include <KIMAP2/GetMetaDataJob> 34#include <KIMAP2/GetMetaDataJob>
35#include <KIMAP2/SubscribeJob>
35 36
36#include <KCoreAddons/KJob> 37#include <KCoreAddons/KJob>
37 38
@@ -321,6 +322,13 @@ KAsync::Job<void> ImapServerProxy::create(const QString &mailbox)
321 return runJob(create); 322 return runJob(create);
322} 323}
323 324
325KAsync::Job<void> ImapServerProxy::subscribe(const QString &mailbox)
326{
327 auto job = new KIMAP2::SubscribeJob(mSession);
328 job->setMailBox(mailbox);
329 return runJob(job);
330}
331
324KAsync::Job<void> ImapServerProxy::rename(const QString &mailbox, const QString &newMailbox) 332KAsync::Job<void> ImapServerProxy::rename(const QString &mailbox, const QString &newMailbox)
325{ 333{
326 auto rename = new KIMAP2::RenameJob(mSession); 334 auto rename = new KIMAP2::RenameJob(mSession);