ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Managing emails
  • Deleted messages (IMAP protocol)
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the number of incoming messages on the email server (IMAP protocol).
This number of messages evolves according to the incoming emails or to the emails actually deleted from the email server (via an "expunge" commande, clear the bin from a WebMail for example). You also have the ability to force the destruction of all deleted emails via <emailIMAPSession variable>.Expunge.
Example
MaSession is emailIMAPSession

nbMSG is int = MaSession.NbMessage()
FOR I = 1 TO nbMSG
	EmailReadMessage(MaSession, I)
	IF Email.Out <> True THEN
		CL.NOM = Email.Sender
		CL.MESSAGE_TXT = Email.Message
		...
	ELSE
		Info("Ce message a été supprimé")
	END
END
Syntax
<Result> = <IMAP session>.NbMessage()
<Result>: Integer
  • Number of messages received on the server in the current email session,
  • -1 if an error occurred. To get more details on the error, use ErrorInfo.
<IMAP session>: emailIMAPSession variable
Name of the emailIMAPSession variable corresponding to the email session to use.
Remarks

Deleted messages (IMAP protocol)

If a message was deleted by EmailDeleteMessage, this message is actually deleted from the session:
Component: wd300com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/26/2024

Send a report | Local help