Inherits from MCOAbstractMessage : NSObject
Conforms to NSCoding
Declared in MCOIMAPMessage.h
MCOIMAPMessage.mm

Overview

This represents an IMAP message.

If you fetched the MIME structure of the message, you can fetch efficiently the content of the message by fetching only the parts that you need to show it.

For example, you could fetch only the text parts to show the summary of the message, using [MCOIMAPSession fetchMessageAttachmentByUIDOperationWithFolder:uid:partID:encoding:]

You can also decide to fetch entirely the message using [MCOIMAPSession fetchMessageByUIDOperationWithFolder:uid:]

Properties

customFlags

Flag keywords of the message, mostly custom flags

@property (nonatomic, copy) NSArray *customFlags

Declared In

MCOIMAPMessage.h

flags

Flags of the message, like if it is deleted, read, starred etc

@property (nonatomic, assign) MCOMessageFlag flags

Declared In

MCOIMAPMessage.h

gmailLabels

All Gmail labels of the message

@property (nonatomic, copy) NSArray *gmailLabels

Declared In

MCOIMAPMessage.h

gmailMessageID

Gmail message ID of the message

@property (nonatomic, assign) uint64_t gmailMessageID

Declared In

MCOIMAPMessage.h

gmailThreadID

Gmail thread ID of the message

@property (nonatomic, assign) uint64_t gmailThreadID

Declared In

MCOIMAPMessage.h

mainPart

Main MIME part of the message

@property (nonatomic, retain) MCOAbstractPart *mainPart

Declared In

MCOIMAPMessage.h

modSeqValue

It’s the last modification sequence value of the message synced from the server. See RFC4551

@property (nonatomic, assign) uint64_t modSeqValue

Declared In

MCOIMAPMessage.h

originalFlags

The contents of the message flags when it was fetched from the server

@property (nonatomic, assign) MCOMessageFlag originalFlags

Declared In

MCOIMAPMessage.h

sequenceNumber

IMAP sequence number of the message.

@property (nonatomic, assign) uint32_t sequenceNumber

Discussion

Warning: Important: This property won’t be serialized.

Declared In

MCOIMAPMessage.h

uid

IMAP UID of the message.

@property (nonatomic, assign) uint32_t uid

Declared In

MCOIMAPMessage.h

Instance Methods

htmlRenderingWithFolder:delegate:

HTML rendering of the message to be displayed in a web view. The delegate should implement at least [MCOAbstractMessage:dataForIMAPPart:folder:] so that the complete HTML rendering can take place.

- (NSString *)htmlRenderingWithFolder:(NSString *)folder delegate:(id<MCOHTMLRendererIMAPDelegate>)delegate

Declared In

MCOIMAPMessage.h

partForPartID:

Returns the part with the given part identifier.

- (MCOAbstractPart *)partForPartID:(NSString *)partID

Parameters

partID

A part identifier looks like 1.2.1

Declared In

MCOIMAPMessage.h