PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
MaSession is emailIMAPSession
 
nbMSG is int = MaSession.()
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
Versions 15 and later
<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 the details of the error, use ErrorInfo.
<IMAP session>: emailIMAPSession variable
Name of the emailIMAPSession variable corresponding to the email session to use.
New in version 15
<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 the details of the error, use ErrorInfo.
<IMAP session>: emailIMAPSession variable
Name of the emailIMAPSession variable corresponding to the email session to use.
<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 the details of 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: wd270com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment