| |
| INT GetMailboxDelimiter( |
| |
LPCTSTR lpszMailbox, |
|
| |
LPTSTR lpszDelimiter, |
|
| |
INT nMaxLength |
|
| ); |
| INT GetMailboxDelimiter( |
| |
LPCTSTR lpszMailbox, |
|
| |
CString& strDelimiter |
|
| ); |
The GetMailboxDelimiter method returns the hierarchical
path delimiter used for the specified mailbox.
Parameters
- lpszMailbox
- A null-terminated string which specifies the
mailbox name. This parameter may be NULL or an empty string, in
which case the default delimiter will be returned.
- lpszDelimiter
- A null-terminated string buffer that will contain
the mailbox delimiter. An alternate form of this method accepts a
CString object that will contain the delimiter when the
method returns.
- nMaxLength
- The maximum length of the delimiter string, including the
terminating null character.
Return Value
If the method succeeds, it returns the length of the delimiter for
the specified mailbox, not including the terminating null character.
If an error occurs, the method returns IMAP_ERROR. To get extended
error information, call GetLastError.
Remarks
If the IMAP server supports multiple levels of mailboxes, then a
special character or sequence of characters are used as delimiters
between different levels of the mailbox hierarchy. On most systems,
including most UNIX and Windows platforms, the delimiter is the
forward slash "/" character.
It is possible that an IMAP server may only support a flat
namespace, in which case this method will return a value of zero.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csmapv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|
|