Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Imap.UnselectFolder Method

Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9147)

UnselectFolder(Boolean)

Unselects the currently selected folder and optionally permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.

Declaration
public void UnselectFolder(bool purgeDeleted)
Parameters
Type Name Description
Boolean purgeDeleted

Specifies whether to purge (permanently remove) all messages marked as deleted.

Remarks

CurrentFolder will be null (Nothing in Visual Basic) after a call to this method.

This method uses IMAP CLOSE command to purge the messages. No purging is performed if the current folder is selected as read-only.

See Also
SelectFolder(String)
Purge()

UnselectFolder()

Unselects the currently selected folder. Messages marked as deleted (with a Deleted flag) are not permanently removed. To remove them, use UnselectFolder(Boolean) or Purge() method.

Declaration
public void UnselectFolder()
Remarks

CurrentFolder will be null (Nothing in Visual Basic) after a call to this method.

This method does not perform any IMAP command. To unselect a folder and purge deleted messages using the CLOSE command, use UnselectFolder(Boolean) mehod.

See Also
SelectFolder(String)
Purge()
In This Article
  • UnselectFolder(Boolean)
  • UnselectFolder()
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies