VBScript
Voicemail Pro Installation and Maintenance Guide
Page 239
IP Office
15-601063 Issue 15b (31 May 2006)
GetMailbox Method
The GetMailbox method is used to obtain a mailbox.
Voice.GetMailbox(
index As Long,
) As String
Parameters
index - The mailbox to return. Note: The actual mailbox number should not be entered as
index refers to the offset number of the mailbox in the listing.
Return Value
The mailbox at that position within the list (an empty string if end of list).
GetMailboxMessage Method
The GetMailboxMessage method is used to obtain a message within a mailbox.
Voice.GetMailboxMessage(
mailbox As String,
msgtype As String,
index As Long,
) As String
Parameters
mailbox - The mailbox to return messages for.
msgtype - The type of messages to return. This can start with an N for new messages, O
for old messages and S for saved messages.
index - The message to return.
Return Value
The message at that position within the list (an empty string if end of list).
GetMailboxMessages Method
The GetMailboxMessages method is used to obtain the count of specific messages within a mailbox.
Voice.GetMailboxMessages(
mailbox As String,
msgtype As String
) As Long
Parameters
mailbox - The mailbox to return message counts for.
msgtype - The type of messages to return counts for. This can start with an N to obtain
the number of new messages, O for old messages and S for saved messages.
Return Value
The number of messages of a particular type within the mailbox.