MCOMessageHeader Class Reference
Inherits from | NSObject |
Conforms to | NSCoding NSCopying |
Declared in | MCOMessageHeader.h MCOMessageHeader.mm |
Tasks
-
messageID
property -
messageIDAutoGenerated
property -
references
property -
inReplyTo
property -
date
property -
receivedDate
property -
sender
property -
from
property -
to
property -
cc
property -
bcc
property -
replyTo
property -
subject
property -
userAgent
property -
+ headerWithData:
-
– initWithData:
-
– setExtraHeaderValue:forName:
-
– removeExtraHeaderForName:
-
– extraHeaderValueForName:
-
– allExtraHeadersNames
-
– extractedSubject
-
– partialExtractedSubject
-
– importHeadersData:
-
– replyHeaderWithExcludedRecipients:
-
– replyAllHeaderWithExcludedRecipients:
-
– forwardHeader
Properties
bcc
Bcc field: bcc recipient of the message. It’s an array of MCOAddress.
@property (nonatomic, copy) NSArray *bcc
Declared In
MCOMessageHeader.h
cc
Cc field: cc recipient of the message. It’s an array of MCOAddress.
@property (nonatomic, copy) NSArray *cc
Declared In
MCOMessageHeader.h
date
Date field: sent date of the message.
@property (nonatomic, strong) NSDate *date
Declared In
MCOMessageHeader.h
from
From field: address of the sender of the message.
@property (nonatomic, copy) MCOAddress *from
Declared In
MCOMessageHeader.h
inReplyTo
In-Reply-To field. It’s an array of message-ids.
@property (nonatomic, copy) NSArray *inReplyTo
Declared In
MCOMessageHeader.h
messageID
Message-ID field.
@property (nonatomic, copy) NSString *messageID
Declared In
MCOMessageHeader.h
messageIDAutoGenerated
Message-ID auto-generated flag.
@property (nonatomic, readonly, getter=isMessageIDAutoGenerated) BOOL messageIDAutoGenerated
Declared In
MCOMessageHeader.h
receivedDate
Received date: received date of the message.
@property (nonatomic, strong) NSDate *receivedDate
Declared In
MCOMessageHeader.h
references
References field. It’s an array of message-ids.
@property (nonatomic, copy) NSArray *references
Declared In
MCOMessageHeader.h
replyTo
Reply-To field. It’s an array of MCOAddress.
@property (nonatomic, copy) NSArray *replyTo
Declared In
MCOMessageHeader.h
subject
Subject of the message.
@property (nonatomic, copy) NSString *subject
Declared In
MCOMessageHeader.h
to
To field: recipient of the message. It’s an array of MCOAddress.
@property (nonatomic, copy) NSArray *to
Declared In
MCOMessageHeader.h
Class Methods
headerWithData:
Returns a header created from RFC 822 data.
+ (MCOMessageHeader *)headerWithData:(NSData *)data
Declared In
MCOMessageHeader.h
Instance Methods
allExtraHeadersNames
Returns an array with the names of all custom headers.
- (NSArray *)allExtraHeadersNames
Declared In
MCOMessageHeader.h
extraHeaderValueForName:
Returns the value of a given custom header.
- (NSString *)extraHeaderValueForName:(NSString *)name
Declared In
MCOMessageHeader.h
extractedSubject
Extracted subject (also remove square brackets).
- (NSString *)extractedSubject
Declared In
MCOMessageHeader.h
forwardHeader
Returns a header that can be used as a base for a forward message.
- (MCOMessageHeader *)forwardHeader
Declared In
MCOMessageHeader.h
importHeadersData:
Fill the header using the given RFC 822 data.
- (void)importHeadersData:(NSData *)data
Declared In
MCOMessageHeader.h
initWithData:
Initialize a header with RFC 822 data.
- (id)initWithData:(NSData *)data
Declared In
MCOMessageHeader.h
partialExtractedSubject
Extracted subject (don’t remove square brackets).
- (NSString *)partialExtractedSubject
Declared In
MCOMessageHeader.h
removeExtraHeaderForName:
Remove a given custom header.
- (void)removeExtraHeaderForName:(NSString *)name
Declared In
MCOMessageHeader.h
replyAllHeaderWithExcludedRecipients:
Returns a header that can be used as a base for a reply all message.
- (MCOMessageHeader *)replyAllHeaderWithExcludedRecipients:(NSArray *)excludedRecipients
Declared In
MCOMessageHeader.h