Imap.PurgeAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9083)
PurgeAsync(ImapMessageSet, Object)
Begins asynchronous Purge operation. Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
Declaration
public Task PurgeAsync(ImapMessageSet messageSet, object state = null)
Parameters
Type | Name | Description |
---|---|---|
ImapMessageSet | messageSet | 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. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
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.
See Also
PurgeAsync(Object)
Begins asynchronous Purge operation. Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
Declaration
public Task PurgeAsync(object state = null)
Parameters
Type | Name | Description |
---|---|---|
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
This method represents IMAP EXPUNGE command.