CImapClient::ReselectMailbox Method  
 
BOOL ReselectMailbox(
  LPIMAPMAILBOX lpMailboxInfo  
);

The ReselectMailbox method reselects the current mailbox and returns updated information about the status of the mailbox.

Parameters

lpMailboxInfo
A pointer to an IMAPMAILBOX structure which contains updated information about the mailbox when the method returns. This parameter may be NULL if the caller does not require any information about the mailbox.

Return Value

If the method succeeds, the return value is zero. If the method fails, the return value is IMAP_ERROR. To get extended error information, call GetLastError.

Remarks

The ReselectMailbox method forces the current mailbox to be reselected and returns updated information about the status of the mailbox. Deleted messages are not expunged from the mailbox and remain marked for deletion.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csmapv10.lib

See Also

ExamineMailbox, SelectMailbox, UnselectMailbox