From ee5dfc0878059a48fdff7ca16b0aa69a652414d5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 2 Mar 2018 11:54:55 +0100 Subject: Subscribe to mailboxes we create in tests --- examples/imapresource/imapserverproxy.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples/imapresource/imapserverproxy.cpp') 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 @@ #include #include #include +#include #include @@ -321,6 +322,13 @@ KAsync::Job ImapServerProxy::create(const QString &mailbox) return runJob(create); } +KAsync::Job ImapServerProxy::subscribe(const QString &mailbox) +{ + auto job = new KIMAP2::SubscribeJob(mSession); + job->setMailBox(mailbox); + return runJob(job); +} + KAsync::Job ImapServerProxy::rename(const QString &mailbox, const QString &newMailbox) { auto rename = new KIMAP2::RenameJob(mSession); -- cgit v1.2.3