aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/imap/MCIMAPCreateFolderOperation.cc
blob: d4e341fc68a8858cea1d6fde9b19bb3128892ede (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
//
//  MCIMAPCreateFolderOperation.cpp
//  mailcore2
//
//  Created by DINH Viêt Hoà on 1/12/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#include "MCIMAPCreateFolderOperation.h"

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

using namespace mailcore;

IMAPCreateFolderOperation::IMAPCreateFolderOperation()
{
}

IMAPCreateFolderOperation::~IMAPCreateFolderOperation()
{
}

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