Microsoft KB Archive/62127

{|
 * width="100%"|

Mac Hyp: Retrieving Data from a MessageList
'Article ID: Q62127

Creation Date: 22-MAY-1990

Revision Date: 19-OCT-1994' The information in this article applies to:


 * Microsoft Mail Software Development Kit (SDK) for HyperCard, version 2.0

SUMMARY

The following routine retrieves information from a messageList created by getMessageList or displayMessageCenter in Microsoft Mail version 2.00:

msmail(GetMessageListField, messageList, fieldName[,index])=>data What is returned depends on the value of the &quot;fieldName&quot; parameter:
 * 1) &quot;messageCount&quot; returns the number of messages in the list.
 * 2) &quot;type&quot; returns the 4-character message type.
 * 3) &quot;ID&quot; returns the message's unique ID number.
 * 4) &quot;read&quot; returns true if the message has already been read; otherwise, it returns false.
 * 5) &quot;enclosure&quot; returns true if the message contains an attached file; otherwise, it returns false.
 * 6) &quot;urgent&quot; returns true if the message is urgent; otherwise it returns false.
 * 7) &quot;sender&quot; returns the sender's name.
 * 8) &quot;subject&quot; returns the message subject.
 * 9) &quot;receivedDate&quot; returns the received date in seconds since 1904.

MORE INFORMATION

If &quot;index&quot; is supplied, getMessageListField returns the value of that field for the message indicated by &quot;index.&quot; So, to find out whether the third message has been read, type the following:

put msmail(getMessageListField, messageList, &quot;read&quot;, 3) into isRead If &quot;index&quot; is not supplied, getMessageListField returns a list of values, one for each message in the message list, followed by a return: put msmail(getMessageListField, messageList, &quot;sender&quot;) into sndr If the message list has multiple messages in it, &quot;sndr&quot; will contain: sender of message 1 sender of message 2 ... If the message list has one message in it, &quot;sndr&quot; will contain: sender of message 1 This information is taken from the &quot;Microsoft Mail HyperCard Interface Documentation.&quot;
 * }

-

"THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''

KBCategory: kbtool

KBSubcategory: MailATHyp