ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Managing emails
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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
cMaSession est une emailSessionIMAP
...
SI cMaSession.OuvreSession() ALORS
cMonEmail est un Email
EmailLitPremier(cMaSession, cMonEmail)
TANTQUE PAS cMonEmail..EnDehors
EmailSupprimeMessage(cMaSession, cMonEmail)
EmailLitSuivant(cMaSession, cMonEmail)
FIN
// Détruit les emails supprimés
cMaSession.Détruit()
cMaSession.FermeSession()
FIN
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: wd290com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help