Inherits from MCOAbstractMessage : NSObject
Declared in MCOMessageParser.h
MCOMessageParser.mm

Overview

This class implements a parsed message. When the full content of a message has been fetched using POP or IMAP, you need to parse it.

Class Methods

messageParserWithData:

returns a parsed message from the given RFC 822 data.

+ (MCOMessageParser *)messageParserWithData:(NSData *)data

Declared In

MCOMessageParser.h

Instance Methods

data

data of the RFC 822 formatted message. It’s the input of the parser.

- (NSData *)data

Declared In

MCOMessageParser.h

htmlBodyRendering

HTML rendering of the body of the message to be displayed in a web view.

- (NSString *)htmlBodyRendering

Declared In

MCOMessageParser.h

htmlRenderingWithDelegate:

HTML rendering of the message to be displayed in a web view. delegate can be nil.

- (NSString *)htmlRenderingWithDelegate:(id<MCOHTMLRendererDelegate>)delegate

Declared In

MCOMessageParser.h

initWithData:

data is the RFC 822 formatted message.

- (id)initWithData:(NSData *)data

Declared In

MCOMessageParser.h

mainPart

It’s the main part of the message. It can be MCOMessagePart, MCOMultipart or MCOAttachment.

- (MCOAbstractPart *)mainPart

Declared In

MCOMessageParser.h

plainTextBodyRendering

Text rendering of the body of the message. All end of line will be removed and white spaces cleaned up. This method can be used to generate the summary of the message.

- (NSString *)plainTextBodyRendering

Declared In

MCOMessageParser.h

plainTextBodyRenderingAndStripWhitespace:

Text rendering of the body of the message. All end of line will be removed and white spaces cleaned up if requested. This method can be used to generate the summary of the message.

- (NSString *)plainTextBodyRenderingAndStripWhitespace:(BOOL)stripWhitespace

Declared In

MCOMessageParser.h

plainTextRendering

Text rendering of the message.

- (NSString *)plainTextRendering

Declared In

MCOMessageParser.h