MCOIMAPMessage Class Reference
| 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:]
Tasks
-
uidproperty -
sequenceNumberproperty -
flagsproperty -
originalFlagsproperty -
customFlagsproperty -
modSeqValueproperty -
mainPartproperty -
gmailLabelsproperty -
gmailMessageIDproperty -
gmailThreadIDproperty -
– partForPartID: -
– htmlRenderingWithFolder:delegate:
Properties
customFlags
Flag keywords of the message, mostly custom flags
@property (nonatomic, copy) NSArray *customFlagsDeclared In
MCOIMAPMessage.hflags
Flags of the message, like if it is deleted, read, starred etc
@property (nonatomic, assign) MCOMessageFlag flagsDeclared In
MCOIMAPMessage.hgmailLabels
All Gmail labels of the message
@property (nonatomic, copy) NSArray *gmailLabelsDeclared In
MCOIMAPMessage.hgmailMessageID
Gmail message ID of the message
@property (nonatomic, assign) uint64_t gmailMessageIDDeclared In
MCOIMAPMessage.hgmailThreadID
Gmail thread ID of the message
@property (nonatomic, assign) uint64_t gmailThreadIDDeclared In
MCOIMAPMessage.hmainPart
Main MIME part of the message
@property (nonatomic, retain) MCOAbstractPart *mainPartDeclared In
MCOIMAPMessage.hmodSeqValue
It’s the last modification sequence value of the message synced from the server. See RFC4551
@property (nonatomic, assign) uint64_t modSeqValueDeclared In
MCOIMAPMessage.horiginalFlags
The contents of the message flags when it was fetched from the server
@property (nonatomic, assign) MCOMessageFlag originalFlagsDeclared In
MCOIMAPMessage.hInstance 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>)delegateDeclared In
MCOIMAPMessage.h