Inherits from MCOAbstractPart : NSObject
Declared in MCOAttachment.h
MCOAttachment.mm

Overview

This is a single part.

It can either parsed from RFC 822 message data or created to build a message.

Properties

data

Decoded data of the part.

@property (nonatomic, strong) NSData *data

Declared In

MCOAttachment.h

Class Methods

attachmentWithContentsOfFile:

Returns a file attachment with the content of the given file.

+ (MCOAttachment *)attachmentWithContentsOfFile:(NSString *)filename

Declared In

MCOAttachment.h

attachmentWithData:filename:

Returns a file attachment with the given data and filename.

+ (MCOAttachment *)attachmentWithData:(NSData *)data filename:(NSString *)filename

Declared In

MCOAttachment.h

attachmentWithHTMLString:

Returns a part with an HTML content.

+ (MCOAttachment *)attachmentWithHTMLString:(NSString *)htmlString

Declared In

MCOAttachment.h

attachmentWithRFC822Message:

Returns a part with a RFC 822 messsage attachment.

+ (MCOAttachment *)attachmentWithRFC822Message:(NSData *)messageData

Declared In

MCOAttachment.h

attachmentWithText:

Returns a part with an plain text content.

+ (MCOAttachment *)attachmentWithText:(NSString *)text

Declared In

MCOAttachment.h

mimeTypeForFilename:

Returns a MIME type for a filename.

+ (NSString *)mimeTypeForFilename:(NSString *)filename

Declared In

MCOAttachment.h

Instance Methods

decodedString

Returns string representation according to charset

- (NSString *)decodedString

Declared In

MCOAttachment.h