ExpungeMailbox Method

Removes all messages marked with 'Deleted' flag from the currently selected mailbox.

Syntax

public void ExpungeMailbox();
Public Sub ExpungeMailbox()

Remarks

This method permanently removes all messages that have the 'Deleted' flag set from the current (selected) mailbox. Example (Set "Deleted" flag and Expunge)


IMAPControl.MessageSet = "1"
IMAPControl.AddMessageFlags("\Deleted")
IMAPControl.ExpungeMailbox()

.NET Standard Notes

To call this method in an asynchronous manner call ExpungeMailboxAsync instead. When the method completes (or an error is encountered) the ExpungeMailboxCompleted event will fire.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
Cloud Mail 2020 .NET Edition - Version 20.0 [Build 7718]