ActiveUp.Net.Mail.Mailbox.Empty C# (CSharp) Method

Empty() public method

Empties the mailbox.
public Empty ( bool expunge ) : void
expunge bool If true, all messages are permanently removed. Otherwise they are all marked with the Deleted flag.
return void
		public void Empty(bool expunge)
		{
			
			ActiveUp.Net.Mail.FlagCollection flags = new ActiveUp.Net.Mail.FlagCollection();
			flags.Add("Deleted");
			for(int i=1;i<=this.MessageCount;i++) this.AddFlagsSilent(i,flags);
			if(expunge) this.SourceClient.Expunge();
		}