MBFirstReadMessage

Purpose

This function returns the first read message in the given mailbox. To get all the read messages, this function should be called first, then call MBNextReadMessage.

Parameters

Parameter: Line
Type: Integer
Description: The phone line to access.

Parameter: mb
Type: Mailbox
Description: The mailbox to access. This is a reference to a mailbox object. Use hsp.MBGet to get a mailbox.

Returns

Return value: File name
Type: String
Description: The filename of the voice message. Note that this filename does not include the full path to the file. Voice messages are saved in the directory messages in the HomeSeer application directory. To create the full path to the file, use the GetAppPath function like:

path = hsp.GetAppPath & "\messages\" & message