mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 04:20:33 +00:00
Monotone-Parent: 3ad8d11f70ec6e6370751cd72269263405a290a1
Monotone-Revision: 2e84cd33211e690f4a1d23f18f557220df113d36 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-10-23T15:55:56 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
|
||||
@class NSData, NSArray, NSException, NSMutableArray;
|
||||
@class NGImap4MailboxInfo;
|
||||
@class WOResponse;
|
||||
|
||||
typedef enum {
|
||||
undefined = -1,
|
||||
@@ -61,6 +62,13 @@ typedef enum {
|
||||
- (NSArray *) fetchUIDsMatchingQualifier: (id)_q sortOrdering: (id) _so;
|
||||
- (NSArray *) fetchUIDs: (NSArray *) _uids parts: (NSArray *) _parts;
|
||||
|
||||
- (WOResponse *) copyUIDs: (NSArray *) uids
|
||||
toFolder: (NSString *) destinationFolder
|
||||
inContext: (id) localContext;
|
||||
- (WOResponse *) moveUIDs: (NSArray *) uids
|
||||
toFolder: (NSString *) destinationFolder
|
||||
inContext: (id) localContext;
|
||||
|
||||
- (NSException *) postData: (NSData *) _data flags: (id) _flags;
|
||||
|
||||
- (void) markForExpunge;
|
||||
|
||||
@@ -398,8 +398,8 @@ static NSString *spoolFolder = nil;
|
||||
}
|
||||
|
||||
- (WOResponse *) copyUIDs: (NSArray *) uids
|
||||
toFolder: (NSString *) destinationFolder
|
||||
inContext: (id) localContext
|
||||
toFolder: (NSString *) destinationFolder
|
||||
inContext: (id) localContext
|
||||
{
|
||||
NSEnumerator *folders;
|
||||
NSString *currentFolderName;
|
||||
@@ -434,8 +434,8 @@ static NSString *spoolFolder = nil;
|
||||
}
|
||||
|
||||
- (WOResponse *) moveUIDs: (NSArray *) uids
|
||||
toFolder: (NSString *) destinationFolder
|
||||
inContext: (id) localContext
|
||||
toFolder: (NSString *) destinationFolder
|
||||
inContext: (id) localContext
|
||||
{
|
||||
id result;
|
||||
NGImap4Client *client;
|
||||
|
||||
@@ -109,7 +109,7 @@ static NSArray *infoKeys = nil;
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
[self setPriority: @"NORMAL"];
|
||||
priority = @"NORMAL";
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
if ([value length] > 0)
|
||||
{
|
||||
uids = [value componentsSeparatedByString: @","];
|
||||
response = [co deleteUIDs: uids inContext: context];
|
||||
response = (WOResponse *) [co deleteUIDs: uids inContext: context];
|
||||
if (!response)
|
||||
response = [self responseWith204];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user