aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/imap/MCOIMAPSession.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/objc/imap/MCOIMAPSession.h')
-rw-r--r--src/objc/imap/MCOIMAPSession.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPSession.h b/src/objc/imap/MCOIMAPSession.h
index 3849b32e..99d67532 100644
--- a/src/objc/imap/MCOIMAPSession.h
+++ b/src/objc/imap/MCOIMAPSession.h
@@ -339,6 +339,7 @@
// Returns an operation to fetch an attachment.
// The operation needs to be started.
//
+// Example 1:
// {
// ...
// MCOIMAPFetchContentOperation * op = [session fetchMessageAttachmentByUIDOperationWithFolder:@"INBOX"
@@ -349,6 +350,17 @@
// ...
// }];
//
+// Example 2:
+// {
+// ...
+// MCOIMAPFetchContentOperation * op = [session fetchMessageAttachmentByUIDOperationWithFolder:@"INBOX"
+// uid:[message uid]
+// partID:[part partID]
+// encoding:[part encoding]];
+// [op start:^(NSError * error, NSData * partData) {
+// ...
+// }];
+//
- (MCOIMAPFetchContentOperation *) fetchMessageAttachmentByUIDOperationWithFolder:(NSString *)folder
uid:(uint32_t)uid
partID:(NSString *)partID