/usr/include/GNUstep/NGImap4/NGImap4Folder.h is in libsope-dev 3.2.10-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | /*
Copyright (C) 2000-2005 SKYRIX Software AG
This file is part of SOPE.
SOPE is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public
License along with SOPE; see the file COPYING. If not, write to the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
#ifndef __Networking_NGImap4_NGImap4Folder_H__
#define __Networking_NGImap4_NGImap4Folder_H__
#import <Foundation/Foundation.h>
#import <NGMime/NGPart.h>
#import <NGImap4/NGImap4Support.h>
#define USE_MESSAGE_CACHE 0
@class NSArray, NSString, NSMutableArray, NSNumber;
@class EOGlobalID, EOQualifier;
@class NGHashMap;
@class NGImap4Context, NGImap4Message, NGImap4FolderMailRegistry;
@class NGImap4FolderFlags;
@interface NGImap4Folder : NSObject <NGImap4Folder>
{
@private
NGImap4FolderFlags *flags;
NSString *name;
NSURL *url;
EOGlobalID *globalID;
NGImap4Context *context;
NSArray *subFolders;
NSArray *msn2UidCache;
id<NGImap4Folder> parentFolder; // not retained
NSNumber *isReadOnly;
NSArray *messageFlags;
int exists;
int recent;
int unseen;
BOOL selectSyncState;
int maxQuota;
int usedSpace;
int overQuota;
struct {
BOOL select:1;
BOOL status:1;
BOOL quota:1;
} failedFlags;
NGImap4FolderMailRegistry *mailRegistry;
#if USE_MESSAGE_CACHE
int cacheIdx;
NSMutableArray *messages;
NSMutableArray *qualifierCache;
NSMutableArray *messagesCache;
#endif
}
- (id)initWithContext:(NGImap4Context *)_context
name:(NSString *)_name
flags:(NSArray *)_flags
parentFolder:(id<NGImap4Folder>)_folder;
- (BOOL)isEqual:(id)_obj;
- (BOOL)isEqualToImap4Folder:(NGImap4Folder *)_folder;
/* accessors */
- (NGImap4Context *)context;
- (NSException *)lastException;
- (void)resetLastException;
- (id<NGImap4Folder>)parentFolder;
- (NSString *)name;
- (NSString *)absoluteName;
- (NSArray *)flags;
- (NSData *)blobForUid:(unsigned)_mUid
part:(NSString *)_part;
- (NSArray *)fetchSortedMessages:(NSArray *)_so;
- (void)bulkFetchHeadersFor:(NSArray *)_array inRange:(NSRange)_aRange;
- (void)bulkFetchHeadersFor:(NSArray *)_array inRange:(NSRange)_aRange
withAllUnread:(BOOL)_allUnread;
- (NSArray *)fetchSortedMessages:(NSRange)_aRange
sortOrderings:(NSArray *)_so;
- (NSArray *)messageFlags;
- (NSArray *)messages;
- (NSArray *)messagesForQualifier:(EOQualifier *)_qualifier;
- (NSArray *)messagesForQualifier:(EOQualifier *)_qualifier maxCount:(int)_cnt;
- (NSArray *)subFolders;
- (NGImap4Folder *)subFolderWithName:(NSString *)_name
caseInsensitive:(BOOL)_caseIns;
- (NGImap4Message *)messageForUid:(unsigned)_mUid
sortOrderings:(NSArray *)_so
onlyUnread:(BOOL)_unread
nextMessage:(BOOL)_next;
- (BOOL)isReadOnly;
- (int)exists;
- (int)recent;
- (int)unseen;
- (BOOL)noselect;
- (BOOL)noinferiors;
- (BOOL)nonexistent;
- (BOOL)haschildren;
- (BOOL)hasnochildren;
- (BOOL)marked;
- (BOOL)unmarked;
/* this folder or its subfolders */
- (BOOL)hasNewMessagesSearchRecursiv:(BOOL)_recursiv;
- (BOOL)hasUnseenMessagesSearchRecursiv:(BOOL)_recursiv;
- (BOOL)hasNewMessagesSearchRecursiv:(BOOL)_rec fetchOnDemand:(BOOL)_fetch;
- (BOOL)hasUnseenMessagesSearchRecursiv:(BOOL)_rec fetchOnDemand:(BOOL)_fetch;
/* Notifications */
- (void)processResponse:(NSDictionary *)_dict;
/* Actions */
- (BOOL)status;
- (BOOL)select;
/* if imm == YES syncState will be ignored */
- (BOOL)selectImmediately:(BOOL)_imm;
- (void)expunge;
- (BOOL)addFlag:(NSString *)_flag toMessages:(NSArray *)_messages;
- (BOOL)removeFlag:(NSString *)_flag fromMessages:(NSArray *)_messages;
- (BOOL)renameTo:(NSString *)_name;
/* returns quota in kBytes */
- (int)usedSpace;
- (int)maxQuota;
- (BOOL)isOverQuota; /* evaluate ALERT sequences during select */
- (BOOL)deleteMessages:(NSArray *)_messages;
- (BOOL)deleteAllMessages;
- (BOOL)moveMessages:(NSArray *)_messages toFolder:(NGImap4Folder *)_folder;
- (BOOL)copyMessages:(NSArray *)_messages toFolder:(NGImap4Folder *)_folder;
- (BOOL)appendMessage:(NSData *)_msg;
- (BOOL)deleteSubFolder:(NGImap4Folder *)_folder;
- (BOOL)createSubFolderWithName:(NSString *)_name;
- (BOOL)copySubFolder:(NGImap4Folder *)_f to:(NGImap4Folder *)_folder;
- (BOOL)moveSubFolder:(NGImap4Folder *)_f to:(NGImap4Folder *)_folder;
- (BOOL)isInTrash;
- (void)resetFolder;
- (void)resetSubFolders;
- (void)resetStatus;
- (void)resetSync;
- (NSURL *)url;
- (EOGlobalID *)serverGlobalID;
- (EOGlobalID *)globalID;
/* message factory */
- (id)messageWithUid:(unsigned int)_uid;
/* message registry */
- (NGImap4FolderMailRegistry *)mailRegistry;
@end
#endif /* __Networking_NGImap4_NGImap4Folder_H__ */
|