Inherits from NSObject
Conforms to NSCopying
Declared in MCOIMAPNamespace.h
MCOIMAPNamespace.mm

Overview

Represents an IMAP namespace

Class Methods

namespaceWithPrefix:delimiter:

Returns a simple namespace with only one item.

+ (MCOIMAPNamespace *)namespaceWithPrefix:(NSString *)prefix delimiter:(char)delimiter

Declared In

MCOIMAPNamespace.h

Instance Methods

componentsFromPath:

Returns the components given a folder path.

- (NSArray *)componentsFromPath:(NSString *)path

Declared In

MCOIMAPNamespace.h

containsFolderPath:

Returns YES if the namespace contains the given folder path.

- (BOOL)containsFolderPath:(NSString *)path

Declared In

MCOIMAPNamespace.h

mainDelimiter

Returns the path delimiter of the main item of this namespace

- (char)mainDelimiter

Declared In

MCOIMAPNamespace.h

mainPrefix

Returns the prefix of the main item of this namespace.

- (NSString *)mainPrefix

Declared In

MCOIMAPNamespace.h

pathForComponents:

Returns the folder path for the given list of path components in the context of the main item of the namespace.

- (NSString *)pathForComponents:(NSArray *)components

Declared In

MCOIMAPNamespace.h

pathForComponents:prefix:

Returns the folder path for the given list of path components and a prefix. It will use the best item matching the prefix to compute the path.

- (NSString *)pathForComponents:(NSArray *)components prefix:(NSString *)prefix

Declared In

MCOIMAPNamespace.h

prefixes

Returns the list of prefixes of this namespace.

- (NSArray *)prefixes

Declared In

MCOIMAPNamespace.h