diff options
Diffstat (limited to 'src/objc/imap/MCOIMAPSession.h')
-rwxr-xr-x | src/objc/imap/MCOIMAPSession.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h index add9a428..bab3be7f 100755 --- a/src/objc/imap/MCOIMAPSession.h +++ b/src/objc/imap/MCOIMAPSession.h @@ -20,6 +20,7 @@ @class MCOIMAPFolderStatusOperation; @class MCOIMAPAppendMessageOperation; @class MCOIMAPCopyMessagesOperation; +@class MCOIMAPMoveMessagesOperation; @class MCOIndexSet; @class MCOIMAPFetchMessagesOperation; @class MCOIMAPFetchContentOperation; @@ -318,6 +319,20 @@ destFolder:(NSString *)destFolder NS_RETURNS_NOT_RETAINED; /** + Returns an operation to move messages to a folder. + + MCOIMAPMoveMessagesOperation * op = [session moveMessagesOperationWithFolder:@"INBOX" + uids:[MCIndexSet indexSetWithIndex:456] + destFolder:@"Cocoa"]; + [op start:^(NSError * __nullable error, NSDictionary * uidMapping) { + NSLog(@"moved to folder with UID mapping %@", uidMapping); + }]; +*/ +- (MCOIMAPMoveMessagesOperation *)moveMessagesOperationWithFolder:(NSString *)folder + uids:(MCOIndexSet *)uids + destFolder:(NSString *)destFolder NS_RETURNS_NOT_RETAINED; + +/** Returns an operation to change flags of messages. For example: Adds the seen flag to the message with UID 456. |