CWConstants.h |
Use the links in the table of contents to the left to access the documentation.
Valid modes when setting a Content-Disposition.
Supported encodings.
Valid message flags.
The supported folder formats.
Valid modes for folder.
Flags/name attributes for mailboxes/folders.
Valid modes when forwarding a message.
The format of a message.
Valid recipient types.
Valid modes when replying to a message.
Mask for Folder: -search: mask: options:
Options for Folder: -search: mask: options:
Options for Folder: -search: mask: options:
PantomimeContentDisposition |
Valid modes when setting a Content-Disposition.
typedef enum { PantomimeAttachmentDisposition = 1, PantomimeInlineDisposition = 2 } PantomimeContentDisposition;
PantomimeAttachmentDispositionThe part is separated from the mail body.
PantomimeInlineDispositionThe part is part of the mail body.
This enum lists the valid Content-Disposition as stated in the RFC2183 standard.
PantomimeEncoding |
Supported encodings.
typedef enum { PantomimeEncodingNone = 0, PantomimeEncoding7bit = 0, PantomimeEncodingQuotedPrintable = 1, PantomimeEncodingBase64 = 2, PantomimeEncoding8bit = 3, PantomimeEncodingBinary = 4 } PantomimeEncoding;
PantomimeEncodingNoneNo encoding.
PantomimeEncoding7bitNo encoding, same value as PantomimeEncodingNone.
PantomimeEncodingQuotedPrintableThe quoted-printable encoding.
PantomimeEncodingBase64The base64 encoding.
PantomimeEncoding8bitIdentity encoding.
PantomimeEncodingBinaryIdentity encoding.
This enum lists the supported Content-Transfer-Encoding values. See RFC 2045 - 6. Content-Transfer-Encoding Header Field (all all sub-sections) for a detailed description of the possible values.
PantomimeFlag |
Valid message flags.
typedef enum { PantomimeAnswered = 1, PantomimeDraft = 2, PantomimeFlagged = 4, PantomimeRecent = 8, PantomimeSeen = 16, PantomimeDeleted = 32 } PantomimeFlag;
PantomimeAnsweredThe message has been answered.
PantomimeDraftThe message is an unsent, draft message.
PantomimeFlaggedThe message is flagged.
PantomimeRecentThe message has been recently received.
PantomimeSeenThe message has been read.
PantomimeDeletedThe message is marked as deleted.
This enum lists valid message flags. Flags can be combined using a bitwise OR.
PantomimeFolderFormat |
The supported folder formats.
typedef enum { PantomimeFormatMbox = 0, PantomimeFormatMaildir = 1, PantomimeFormatMailSpoolFile = 2, PantomimeFormatFolder = 3 } PantomimeFolderFormat;
PantomimeFormatMboxThe mbox format.
PantomimeFormatMaildirThe maildir format.
PantomimeFormatMailSpoolFileThe mail spool file, in mbox format but without cache synchronization.
PantomimeFormatFolderCustom format.
Pantomime supports various local folder formats. Currently, the mbox and maildir formats are supported. Also, a custom format is defined to represent folder which holds folders (ie., not messages).
PantomimeFolderMode |
Valid modes for folder.
typedef enum { PantomimeUnknownMode = 1, PantomimeReadOnlyMode = 2, PantomimeReadWriteMode = 3 } PantomimeFolderMode;
PantomimeUnknownModeUnknown mode.
PantomimeReadOnlyModeThe folder will be open in read-only.
PantomimeReadWriteModeThe folder will be open in read-write.
This enum lists the valid mode to be used when opening a folder.
PantomimeFolderType |
Flags/name attributes for mailboxes/folders.
typedef enum { PantomimeHoldsFolders = 1, PantomimeHoldsMessages = 2, PantomimeNoInferiors = 4, PantomimeNoSelect = 8, PantomimeMarked = 16, PantomimeUnmarked = 32 } PantomimeFolderType;
PantomimeHoldsFoldersThe folder holds folders.
PantomimeHoldsMessagesThe folder holds messages.
PantomimeNoInferiorsThe folder has no sub-folders.
PantomimeNoSelectThe folder can't be opened.
PantomimeMarkedThe folder is marked as "interesting".
PantomimeUnmarkedThe folder does not contain any new messages since the last time it has been open.
This enum lists the potential mailbox / folder flags which some IMAP servers can enforce. Those flags have few meaning for POP3 and Local mailboxes. Flags can be combined using a bitwise OR.
PantomimeForwardMode |
Valid modes when forwarding a message.
typedef enum { PantomimeAttachmentForwardMode = 1, PantomimeInlineForwardMode = 2 } PantomimeForwardMode;
PantomimeAttachmentForwardModeThe message will be attached.
PantomimeInlineForwardModeThe text parts of the message will be extracted and included inline in the forwarded response.
This enum lists the valid mode to be used when forwarding a message.
PantomimeMessageFormat |
The format of a message.
typedef enum { PantomimeFormatUnknown = 0, PantomimeFormatFlowed = 1 } PantomimeMessageFormat;
PantomimeFormatUnknownUnknown format.
PantomimeFormatFlowedThe "format=flowed" is used.
Pantomime supports two formats when encoding plain/text parts. The formats are described in RFC 2646.
PantomimeRecipientType |
Valid recipient types.
typedef enum { PantomimeToRecipient = 1, PantomimeCcRecipient = 2, PantomimeBccRecipient = 3, PantomimeResentToRecipient = 4, PantomimeResentCcRecipient = 5, PantomimeResentBccRecipient = 6 } PantomimeRecipientType;
PantomimeToRecipientRecipient which will appear in the "To:" header value.
PantomimeCcRecipientRecipient which will appear in the "Cc:" header value.
PantomimeBccRecipientRecipient which will obtain a black carbon copy of the message.
PantomimeResentToRecipientRecipient which will appear in the "Resent-To:" header value.
PantomimeResentCcRecipientRecipient which will appear in the "Resent-Cc:" header value.
PantomimeResentBccRecipientRecipient which will obtain a black carbon copy of the message being redirected.
This enum lists the valid kind of recipients a message can have.
PantomimeReplyMode |
Valid modes when replying to a message.
typedef enum { PantomimeSimpleReplyMode = 1, PantomimeNormalReplyMode = 2, PantomimeReplyAllMode = 4 } PantomimeReplyMode;
PantomimeSimpleReplyModeReply to the sender, without a message content
PantomimeNormalReplyModeReply to the sender, with a properly build message content.
PantomimeReplyAllModeReply to all recipients.
This enum lists the valid modes to be used when replying to a message. Those modes are to be used with CWMessage: -reply: PantomimeSimpleReplyMode and PantomimeNormalReplyMode can NOT be combined but can be individually combined with PantomimeReplyAllMode.
PantomimeSearchMask |
Mask for Folder: -search: mask: options:
typedef enum { PantomimeFrom = 1, PantomimeTo = 2, PantomimeSubject = 4, PantomimeContent = 8 } PantomimeSearchMask;
PantomimeFromSearch in the "From:" header value.
PantomimeToSearch in the "To:" header value.
PantomimeSubjectSearch in the "Subject:" header value.
PantomimeContentSearch in the message content.
This enum lists the possible values of the search mask. Values can be combined using a bitwise OR.
PantomimeSearchOption |
Options for Folder: -search: mask: options:
typedef enum { PantomimeCaseInsensitiveSearch = 1, PantomimeRegularExpression = 2 } PantomimeSearchOption;
PantomimeCaseInsensitiveSearchDon't consider the case when performing a search operation.
PantomimeRegularExpressionThe search criteria represents a regular expression.
This enum lists the possible options when performing a search.
See Also
PantomimSearchOption
PantomimSearchOption |
Options for Folder: -search: mask: options:
typedef enum { PantomimeCaseInsensitiveSearch = 1, PantomimeRegularExpression = 2 } PantomimeSearchOption;
PantomimeCaseInsensitiveSearchDon't consider the case when performing a search operation.
PantomimeRegularExpressionThe search criteria represents a regular expression.
This enum lists the possible options when performing a search.
See Also
PantomimeSearchOption
_ |
#define _(X) [[NSBundle mainBundle] localizedStringForKey:(X) value:@"" table:nil]
_Pantomime_H_CWConstants |
#define _Pantomime_H_CWConstants
ASSIGN |
#define ASSIGN(object,value)
AUTHENTICATION_COMPLETED |
#define AUTHENTICATION_COMPLETED(del, s) \ POST_NOTIFICATION(PantomimeAuthenticationCompleted, self, [NSDictionary dictionaryWithObject: ((id)s?(id)s:(id)@"") forKey: @"Mechanism"]); \ if (del && [del respondsToSelector: @selector(authenticationCompleted:)]) \ { \ [del performSelector: @selector(authenticationCompleted:) \ withObject: [NSNotification notificationWithName: PantomimeAuthenticationCompleted \ object: self \ userInfo: [NSDictionary dictionaryWithObject: ((id)s?(id)s:(id)@"") forKey: @"Mechanism"]]]; \ };
AUTHENTICATION_FAILED |
#define AUTHENTICATION_FAILED(del, s) \ NSLog(@"POST_NOTIFICATION(PantomimeAuthenticationFailed, self, [NSDictionary dictionaryWithObject: ((id)s?(id)s:(id)@"") forKey: @"Mechanism"]); \ if (del && [del respondsToSelector: @selector(authenticationFailed:)]) \ { \ [del performSelector: @selector(authenticationFailed:) \ withObject: [NSNotification notificationWithName: PantomimeAuthenticationFailed \ object: self \ userInfo: [NSDictionary dictionaryWithObject: ((id)s?(id)s:(id)@"") forKey: @"Mechanism"]]]; \ };
AUTORELEASE |
#define AUTORELEASE(object) [object autorelease]
DESTROY |
#define DESTROY(object)
NSDebugLog |
#define NSDebugLog(format, args...) \ do { NSLog(format, ##args); } while(0)
NSDebugLog |
#define NSDebugLog(format, args...)
NSInteger |
#define NSInteger int
NSLocalizedString |
#define NSLocalizedString(key, comment) \ [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil]
NSUInteger |
#define NSUInteger unsigned int
PANTOMIME_VERSION |
// // The current version of Pantomime. // #define PANTOMIME_VERSION @"1.3.0"
PERFORM_SELECTOR_1 |
// // Some macros, to minimize the code. // #define PERFORM_SELECTOR_1(del, sel, name)
PERFORM_SELECTOR_2 |
#define PERFORM_SELECTOR_2(del, sel, name, obj, key) \ if (del && [del respondsToSelector: sel]) \ { \ [del performSelector: sel \ withObject: [NSNotification notificationWithName: name \ object: self \ userInfo: [NSDictionary dictionaryWithObject: obj forKey: key]]]; \ }
PERFORM_SELECTOR_3 |
#define PERFORM_SELECTOR_3(del, sel, name, info) \ if (del && [del respondsToSelector: sel]) \ { \ [del performSelector: sel \ withObject: [NSNotification notificationWithName: name \ object: self \ userInfo: info]]; \ }
POST_NOTIFICATION |
#define POST_NOTIFICATION(name, obj, info) \ [[NSNotificationCenter defaultCenter] postNotificationName: name \ object: obj \ userInfo: info]
RELEASE |
#define RELEASE(object) [object release]
RETAIN |
#define RETAIN(object) [object retain]
TEST_RELEASE |
#define TEST_RELEASE(object)