aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/imap/MCIMAPExpungeOperation.cpp
blob: 141258b4f46f61a201307347402f207427c7a124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
//  MCIMAPExpungeOperation.cc
//  mailcore2
//
//  Created by DINH Viêt Hoà on 1/12/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#include "MCIMAPExpungeOperation.h"

#include "MCIMAPSession.h"
#include "MCIMAPAsyncConnection.h"

using namespace mailcore;

IMAPExpungeOperation::IMAPExpungeOperation()
{
}

IMAPExpungeOperation::~IMAPExpungeOperation()
{
}

void IMAPExpungeOperation::main()
{
    ErrorCode error;
    session()->session()->expunge(folder(), &error);
    setError(error);
}