Mac Hyp: Getting a List of Messages (59973)



The information in this article applies to:

  • Microsoft Mail Software Development Kit (SDK) for HyperCard 2.0
  • Microsoft Mail Software Development Kit (SDK) for HyperCard 3.0

This article was previously published under Q59973

SUMMARY

To return a list of the messages in a user's mailbox, use the following command:
msmail (getMessageList[, typeFilter][, subjectFilter][, enclosureFilter])
=>
messageList
				
The fields in messageList can be accessed with getMessageListField. If no filters are specified, then all messages are returned. Otherwise, only the messages that satisfy the filter requirements are returned.

"typeFilter" is a single message type to be returned (for example, "Mess" would display only Note messages).

"subjectFilter" specifies the exact subject that a message must have (an empty string matches all messages).

"enclosureFilter" specifies the type(s) of enclosure a message must have (for example, "TEXTWDBN" would display messages containing text or Microsoft Word files).

When finished with messageList, dispose of it by calling disposeMessageList to free up the memory allocated by calling this function.

This information is taken from the "Microsoft Mail HyperCard Interface Documentation."

Modification Type:MajorLast Reviewed:10/2/2003
Keywords:KB59973