CWIMAPFolder |
This class, which extends the CWFolder class, is used to implement IMAP-specific features such as server-side operations for copying messages between mailboxes.
Superclass
CWFolder
Declared In
appendMessageFromRawSource:flags:internalDate: |
- (void) appendMessageFromRawSource: (NSData *) theData flags:(CWFlags *) theFlags internalDate: (NSCalendarDate *) theDate;
This method is used to append a message from its raw source representation (RFC2822 compliant) to the underlying store. It differs from -appendMessageFromRawSource:flags: in that this method supplies the given date to the server to use as the INTERNALDATE. Not supplying this date will cause some servers and clients to report the date of the message as the current date and time, rather than that specified in the Received header.
copyMessages: toFolder: |
- (void) copyMessages: (NSArray *) theMessages toFolder: (NSString *) theFolder;
This method copies the messages in theMessages array from the receiver to the destination folder's name, theFolder. On success, this method posts a PantomimeMessagesCopyCompleted notification (and calls -messagesCopyCompleted: on the delegate, if any). On failure, it posts a PantomimeMessagesCopyFailed notification (and calls -messagesCopyFailed: on the delegate, if any). This method is fully asynchronous.
See Also
copyMessages:toFolder:
copyMessages:toFolder: |
- (void) copyMessages: (NSArray *) theMessages toFolder: (NSString *) theFolder;
This method copies the messages in theMessages array from the receiver to the destination folder's name, theFolder. On success, this method posts a PantomimeMessagesCopyCompleted notification (and calls -messagesCopyCompleted: on the delegate, if any). On failure, it posts a PantomimeMessagesCopyFailed notification (and calls -messagesCopyFailed: on the delegate, if any). This method is fully asynchronous.
See Also
copyMessages: toFolder:
initWithName: mode: |
- (id) initWithName: (NSString *) theName mode: (PantomimeFolderMode) theMode;
An CWIMAPFolder instance, nil on error.
This method is used to initialize the receiver with theName using theMode. Normally, you should not invoke this method directly. You must rather use one of CWIMAPStore's folderForName: ... method.
See Also
initWithName:mode:
initWithName:mode: |
- (id) initWithName: (NSString *) theName mode: (PantomimeFolderMode) theMode;
This method is used to initialize the receiver with theName using theMode. Normally, you should not invoke this method directly. You must rather use one of CWIMAPStore's folderForName: ... method.
See Also
initWithName: mode:
prefetch |
- (void) prefetch;
This method is used to cache part of the message headers from the IMAP server. On completion, it posts the PantomimeFolderPrefetchCompleted notification (and calls -folderPrefetchCompleted: on the delegate, if any). This method is fully asynchronous.
selected |
- (BOOL) selected;
YES if it is in a selected state, NO otherwise.
This method is used to verify if the folder is in a selected state.
setSelected: |
- (void) setSelected: (BOOL) theBOOL;
This method is used to specify if the folder is in a selected state or not. You should never call this method directly. Instead, call IMAPStore: -folderForName: select:.
setUIDValidity: |
- (void) setUIDValidity: (unsigned int) theUIDValidity;
This method is used to set the UID validity of the receiver. If the receiver has a cache (instance of CWIMAPCacheManager) and the UID validity of its cache differs from theUIDValidity, all cache entries are invalidated.
UIDValidity |
- (unsigned int) UIDValidity;
The UID validity of the folder.
This method is used to obtain the UID validity of an IMAP folder. Refer to "2.3.1.1. Unique Identifier (UID) Message Attribute" of RFC 3501 for a detailed description of this parameter.
_selected |
private
BOOL _selected;
_uid_validity |
private
unsigned int _uid_validity;