PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Deleted messages (IMAP protocol)
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
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.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
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
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. For more details about the error, use the function 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. For more details about the error, use the function 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. For more details about the error, use the function 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 : wd250com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment