aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPSession.h
diff options
context:
space:
mode:
authorGravatar Michal Kalis <michal.kalis@cleverlance.com>2014-01-24 09:52:30 +0100
committerGravatar Michal Kalis <michal.kalis@cleverlance.com>2014-01-24 09:52:30 +0100
commitf423bc80f79be265d30c18cfd5b68a05c5d5878d (patch)
tree45a2ca0eb3abb67ef5543cf7edddbf119860dadd /src/objc/imap/MCOIMAPSession.h
parent720d3826943981c88706f09b96df495662ffc3ef (diff)
Method to store cusotm flags is separate from the original one
Diffstat (limited to 'src/objc/imap/MCOIMAPSession.h')
-rwxr-xr-xsrc/objc/imap/MCOIMAPSession.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h
index 5e27fba8..deacfe3d 100755
--- a/src/objc/imap/MCOIMAPSession.h
+++ b/src/objc/imap/MCOIMAPSession.h
@@ -293,8 +293,7 @@
MCOIMAPOperation * op = [session storeFlagsOperationWithFolder:@"INBOX"
uids:[MCOIndexSet indexSetWithIndex:456]
kind:MCOIMAPStoreFlagsRequestKindAdd
- flags:MCOMessageFlagSeen]
- customFlags:@["$Forwarded"];
+ flags:MCOMessageFlagSeen];
[op start:^(NSError * error) {
...
}];
@@ -302,6 +301,24 @@
- (MCOIMAPOperation *) storeFlagsOperationWithFolder:(NSString *)folder
uids:(MCOIndexSet *)uids
kind:(MCOIMAPStoreFlagsRequestKind)kind
+ flags:(MCOMessageFlag)flags;
+/**
+ Returns an operation to change flags of messages.
+
+ For example: Adds the seen flag to the message with UID 456.
+
+ MCOIMAPOperation * op = [session storeFlagsOperationWithFolder:@"INBOX"
+ uids:[MCOIndexSet indexSetWithIndex:456]
+ kind:MCOIMAPStoreFlagsRequestKindAdd
+ flags:MCOMessageFlagSeen
+ customFlags:@["$Forwarded"]];
+ [op start:^(NSError * error) {
+ ...
+ }];
+ */
+- (MCOIMAPOperation *) storeAllFlagsOperationWithFolder:(NSString *)folder
+ uids:(MCOIndexSet *)uids
+ kind:(MCOIMAPStoreFlagsRequestKind)kind
flags:(MCOMessageFlag)flags
customFlags:(NSArray *)customFlags;
/**