ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Managing emails
  • Deleted messages (IMAP protocol)
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
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
MySession is emailIMAPSession
 
nbMSG is int = MySession.NbMessage()
FOR I = 1 TO nbMSG
EmailReadMessage(MySession, I)
IF Email.Out <> True THEN
CU.NAME = Email.Sender
CU.MESSAGE_TXT = Email.Message
...
ELSE
Info("This message was deleted")
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: 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