PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
<emailIMAPSession variable>.Expunge (Function)
In french: <Variable emailSessionIMAP>.Détruit
Destroys all the deleted emails marked as deleted ("Deleted" status) from the current folder of IMAP session.
Example
cMySession is emailIMAPSession
...
IF cMySession.StartSession() THEN
cMyEmail is Email
EmailReadFirst(cMySession, cMyEmail)
WHILE NOT cMyEmail..Out
EmailDeleteMessage(cMySession, cMyEmail)
EmailReadNext(cMySession, cMyEmail)
END
// Destroys the deleted emails
cMySession.Expunge()
cMySession.CloseSession()
END
Syntax
<Result> = <Session>.Expunge()
<Result>: Boolean
  • 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.
Component : wd240com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment