aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-03-25 01:02:04 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-03-25 01:02:04 -0700
commit1353cb0ee96d92192f05e1feb1518e1534ba8cbe (patch)
tree194daa03c4a4b7e128ec204b3945a64649d32f77 /src/objc
parent2bb0d3d94b2d5b3793e3902221901a3727d32d82 (diff)
headers for reply/reply all/forward
Diffstat (limited to 'src/objc')
-rw-r--r--src/objc/abstract/MCOMessageHeader.h4
-rw-r--r--src/objc/abstract/MCOMessageHeader.mm25
2 files changed, 23 insertions, 6 deletions
diff --git a/src/objc/abstract/MCOMessageHeader.h b/src/objc/abstract/MCOMessageHeader.h
index 873c45d8..a0eca023 100644
--- a/src/objc/abstract/MCOMessageHeader.h
+++ b/src/objc/abstract/MCOMessageHeader.h
@@ -35,6 +35,10 @@
- (void) importHeadersData:(NSData *)data;
+- (MCOMessageHeader *) replyHeaderWithExcludedRecipients:(NSArray *)excludedRecipients;
+- (MCOMessageHeader *) replyAllHeaderWithExcludedRecipients:(NSArray *)excludedRecipients;
+- (MCOMessageHeader *) forwardHeader;
+
@end
#endif
diff --git a/src/objc/abstract/MCOMessageHeader.mm b/src/objc/abstract/MCOMessageHeader.mm
index 3d31f758..6729894d 100644
--- a/src/objc/abstract/MCOMessageHeader.mm
+++ b/src/objc/abstract/MCOMessageHeader.mm
@@ -12,14 +12,12 @@
#include <typeinfo>
#include "MCMessageHeader.h"
-#include "NSString+MCO.h"
-#include "NSArray+MCO.h"
-#include "NSObject+MCO.h"
-#include "NSData+MCO.h"
-#include "MCOAddress.h"
-#include "MCOAddress+Private.h"
#include "MCAddress.h"
+#import "MCOUtils.h"
+#import "MCOAddress.h"
+#import "MCOAddress+Private.h"
+
@implementation MCOMessageHeader {
mailcore::MessageHeader * _nativeHeader;
}
@@ -111,4 +109,19 @@ MCO_OBJC_SYNTHESIZE_STRING(setUserAgent, userAgent)
_nativeHeader->importHeadersData([data mco_mcData]);
}
+- (MCOMessageHeader *) replyHeaderWithExcludedRecipients:(NSArray *)excludedRecipients
+{
+ return MCO_TO_OBJC(_nativeHeader->replyHeader(false, MCO_FROM_OBJC(mailcore::Array, excludedRecipients)));
+}
+
+- (MCOMessageHeader *) replyAllHeaderWithExcludedRecipients:(NSArray *)excludedRecipients
+{
+ return MCO_TO_OBJC(_nativeHeader->replyHeader(true, MCO_FROM_OBJC(mailcore::Array, excludedRecipients)));
+}
+
+- (MCOMessageHeader *) forwardHeader
+{
+ return MCO_TO_OBJC(_nativeHeader->forwardHeader());
+}
+
@end