2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __Database_NGImap4_NGImap4Message_H__
23 #define __Database_NGImap4_NGImap4Message_H__
25 #import <Foundation/NSObject.h>
26 #include <NGMime/NGPart.h>
27 #include <NGImap4/NGImap4Support.h>
29 @class NSArray, NSMutableDictionary;
32 @class NGImap4Context, NGImap4Folder, NGImap4FolderMailRegistry;
34 @interface NGImap4Message : NSObject
42 id<NGMimePart> message;
43 id<NGMimePart> bodyStructure;
46 NGImap4Context *context;
47 NGImap4Folder *folder; // not retained
48 NGImap4FolderMailRegistry *mailRegistry;
53 NSMutableDictionary *bodyStructureContent;
55 NSString *removeFlagNotificationName;
56 NSString *addFlagNotificationName;
61 - (id)initWithUid:(unsigned)_uid folder:(NGImap4Folder *)_folder
62 context:(NGImap4Context *)_ctx;
64 - (id)initWithUid:(unsigned)_uid headers:(NGHashMap *)_header
65 size:(unsigned)_size flags:(NSArray *)_flags folder:(NGImap4Folder *)_folder
66 context:(NGImap4Context *)_ctx;
70 - (NSException *)lastException;
71 - (void)resetLastException;
72 - (NGHashMap *)headers;
77 - (NSData *)contentsOfPart:(NSString *)_part;
78 - (id<NGMimePart>)bodyStructure;
79 - (id<NGMimePart>)message;
82 - (NGImap4Folder *)folder;
83 - (NGImap4Context *)context;
86 - (EOGlobalID *)globalID;
90 - (void)addFlag:(NSString *)_flag;
91 - (void)removeFlag:(NSString *)_flag;
99 - (void)markUnFlagged;
102 - (void)markAnswered;
103 - (void)markNotAnswered;
107 - (BOOL)isEqual:(id)_obj;
108 - (BOOL)isEqualToNGImap4Message:(NGImap4Message *)_messages;
112 #endif /* __Database_NGImap4_NGImap4Message_H__ */