aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPMessage.h
blob: c6196103485db6325af19ae67a75dc990698aa73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
//  MCOIMAPMessage.h
//  mailcore2
//
//  Created by DINH Viêt Hoà on 3/23/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#ifndef __MAILCORE_MCOIMAPMESSAGE_H_

#define __MAILCORE_MCOIMAPMESSAGE_H_

#import <MailCore/MCOAbstractMessage.h>
#import <MailCore/MCOConstants.h>

@protocol MCOHTMLRendererIMAPDelegate;

@interface MCOIMAPMessage : MCOAbstractMessage <NSCopying>

@property (nonatomic, assign) uint32_t uid;
@property (nonatomic, assign) MCOMessageFlag flags;
@property (nonatomic, assign) MCOMessageFlag originalFlags;
@property (nonatomic, assign) uint64_t modSeqValue;
@property (nonatomic, retain) MCOAbstractPart * mainPart;
@property (nonatomic, copy) NSArray * gmailLabels;

- (MCOAbstractPart *) partForPartID:(NSString *)partID;
- (MCOAbstractPart *) partForContentID:(NSString *)contentID;
- (MCOAbstractPart *) partForUniqueID:(NSString *)uniqueID;

- (NSString *) htmlRenderingWithFolder:(NSString *)folder
                              delegate:(id <MCOHTMLRendererIMAPDelegate>)delegate;

@end

#endif