ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Managing emails
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Destroys all the deleted emails marked as deleted ("Deleted" status) from the current folder of IMAP session.
Example
cMySession is emailIMAPSession
...
IF EmailStartSession(cMySession) THEN
	cMyEmail is Email
	EmailReadFirst(cMySession, cMyEmail)
	WHILE NOT cMyEmail..Out
		EmailDeleteMessage(cMySession, cMyEmail)
		EmailReadNext(cMySession, cMyEmail)
	END
	// Destroys the deleted emails
	EmailExpunge(cMySession)
	EmailCloseSession(cMySession)
END
Syntax
<Result> = EmailExpunge(<Session>)
<Result>: Boolean
  • True if the destruction was performed,
  • False otherwise.
<Session>: emailIMAPSession variable
Name of the emailIMAPSession variable corresponding to the session on which the messages will be destroyed.
Component: wd300com.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help