Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.

Namespace:  Rebex.Net
Assembly:  Rebex.Imap (in Rebex.Imap.dll)

Syntax

Visual Basic
Public Sub Purge ( _
	messageSet As ImapMessageSet _
)
C#
public void Purge(
	ImapMessageSet messageSet
)

Parameters

messageSet
Type: Rebex.Net..::..ImapMessageSet
Message set comprised of message unique IDs to purge. Only supported by servers that support the UIDPLUS extension. Only the messages that are both present in the set and also have the Deleted flag set will be purged.

Remarks

This method represents IMAP EXPUNGE command.

This message set may be specified to ensure that the method does not remove any messages that have been marked as Deleted between the time that the user requested the purge operation and the time the server processes the command.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also