InternetMail.Get
Syntax:
Parameters:
<ToDeleteMessages> (optional)
True - delete selected message from the server.
Default value: True.
<ArrayOfMessageHeadersOrIdentifies> (optional)
Message header array. If the array is empty or has not been transferred the method returns all of the messages from the server.
For the IMAP connection the array can contain sequence numbers of messages in the current mail box (see CurrentMailbox).
Default value: Am empty array.
<MarkAsRead> (optional)
Mark mails on the server as read.
Relevant only for IMAP, and the only allowed value for POP3 protocol is True.
In the compatibility mode Version8_3_5, the default values are:
- if the other parameter (ArrayOfMessageHeadersOrIdentifies) was set, then - True,
- otherwise - False.
Default value: True.
Returned value:
Array of InternetMailMessage type objects.
If the MessageArray parameter contains an empty array or was not specified, then all messages from server are returned in full.
Description:
Availability:
Example:
Profile = New InternetMailProfile; FillInProfile(Profile); Mail = New InternetMail; Mail.Logon(Profile); News = Mail.Get(True); If News.Count() = 0 Then Message("There are no messages on the server."); EndIf; Mail.Logoff(); |
See also:
InternetMail, method GetUIDL
InternetMail, method GetMessageCount
InternetMail, property CurrentMailbox