Destroys all the deleted emails marked as deleted ("Deleted" status) from the current folder of IMAP session.
cMySession is emailIMAPSession
IF EmailStartSession(cMySession) THEN
cMyEmail is Email
WHILE NOT cMyEmail..Out
// Destroys the deleted emails
<Result> = EmailExpunge(<Session>)
- True if the destruction was performed,
- False otherwise.
<Session>: emailIMAPSession variable
Name of emailIMAPSession variable corresponding to the session on which the messages will be destroyed.