Inherits from MCOIMAPBaseOperation : MCOOperation : NSObject
Declared in MCOIMAPAppendMessageOperation.h
MCOIMAPAppendMessageOperation.mm

Overview

This class implements an operation that adds a message to a folder.

Tasks

Other Methods

Other Methods

Properties

progress

This block will be called as bytes are sent

@property (nonatomic, copy) MCOIMAPBaseOperationProgressBlock progress

Declared In

MCOIMAPAppendMessageOperation.h

Instance Methods

cancel

Cancel the operation.

- (void)cancel

Declared In

MCOOperation.h

operationCompleted

This methods is called on the main thread when the asynchronous operation is finished. Needs to be overriden by subclasses.

- (void)operationCompleted

Declared In

MCOOperation.h

start:

Starts the asynchronous append operation.

- (void)start:(void ( ^ ) ( NSError *error , uint32_t createdUID ))completionBlock

Parameters

completionBlock

Called when the operation is finished.

  • On success error will be nil and createdUID will be the value of the UID of the created message if the server supports UIDPLUS or zero if not.

  • On failure, error will be set with MCOErrorDomain as domain and an error code available in MCOConstants.h, createdUID will be zero.

Declared In

MCOIMAPAppendMessageOperation.h