Inherits from AMPObject : NSObject
Declared in AMPMCOAddress.h
AMPMCOAddress.m

Class Methods

addressWithDisplayName:mailbox:

Creates an address with a display name and a mailbox.

+ (AMPMCOAddress *)addressWithDisplayName:(NSString *)displayName mailbox:(NSString *)mailbox

Discussion

Example: [MCOAddress addressWithDisplayName:@“DINH Viêt Hoà” mailbox:@“hoa@etpan.org”]

Declared In

AMPMCOAddress.h

addressWithMailbox:

Creates an address with only a mailbox.

+ (AMPMCOAddress *)addressWithMailbox:(NSString *)mailbox

Discussion

Example: [MCOAddress addressWithMailbox:@“hoa@etpan.org”]

Declared In

AMPMCOAddress.h

addressWithNonEncodedRFC822String:

Creates an address with a non-MIME-encoded RFC822 string.

+ (AMPMCOAddress *)addressWithNonEncodedRFC822String:(NSString *)nonEncodedRFC822String

Discussion

Example: [MCOAddress addressWithRFC822String:@“DINH Viêt Hoà hoa@etpan.org”]

Declared In

AMPMCOAddress.h

addressWithRFC822String:

Creates an address with a RFC822 string.

+ (AMPMCOAddress *)addressWithRFC822String:(NSString *)RFC822String

Discussion

Example: [MCOAddress addressWithRFC822String:@“DINH Vi=C3=AAt Ho=C3=A0 hoa@etpan.org”]

Declared In

AMPMCOAddress.h

addressesWithNonEncodedRFC822String:

Returns an NSArray of MCOAddress objects that contain the parsed forms of non-encoded RFC822 addresses.

+ (NSArray *)addressesWithNonEncodedRFC822String:(NSString *)string

Discussion

For example: @[ “DINH Viêt Hoà hoa@etpan.org” ]

Declared In

AMPMCOAddress.h

addressesWithRFC822String:

Returns an NSArray of MCOAddress objects that contain the parsed forms of the RFC822 encoded addresses.

+ (NSArray *)addressesWithRFC822String:(NSString *)string

Discussion

For example: @[ @“DINH Vi=C3=AAt Ho=C3=A0 hoa@etpan.org” ]

Declared In

AMPMCOAddress.h

Instance Methods

RFC822String

Returns the RFC822 encoding of the address.

- (NSString *)RFC822String

Discussion

For example: “DINH Vi=C3=AAt Ho=C3=A0 hoa@etpan.org

Declared In

AMPMCOAddress.h

displayName

Returns the display name of the address.

- (NSString *)displayName

Declared In

AMPMCOAddress.h

mailbox

Returns the mailbox of the address.

- (NSString *)mailbox

Declared In

AMPMCOAddress.h

nonEncodedRFC822String

Returns the non-MIME-encoded RFC822 encoding of the address.

- (NSString *)nonEncodedRFC822String

Discussion

For example: “DINH Viêt Hoà hoa@etpan.org

Declared In

AMPMCOAddress.h