This function returns the list of email in the specified folder.
Declare Function sListMail Lib "SapphireMail.dll" ( _
ByVal sService As String, _ ByVal lFolder As Long, _ ByRef lEntries As Long, _ ByVal sSubjects As String, _ ByVal sAttachFlags As String, _ ByVal sReadFlags As String, _ ByVal lLicence As Long) As Long
Parameters
sService
A string specifying the name of the service account to obtain the list of emails from.
lFolder
A long specifying the folder to use. 1 = Inbox, 0 = Drafts.
lEntries
A long variable used to return the number of emails returned.
sSubjects
A string variable used to return the email subjects. Each subject is seperated by the bar (|) character.
sAttachFlags
A string variable used to return whether the emails have attachments, seperated by the bar (|) character.
sReadFlags
A string variable used to return whether the emails have been read, seperated by the bar (|) character.
lLicence
A long specifying the Sapphire Mail licence number.
Return Values
The return value can be ignored for this function.