KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q62134: Mac Hyp: Getting a List of User Names

Article: Q62134
Product(s): Microsoft Mail For Appletalk Networks
Version(s): 2.0,3.0
Operating System(s): 
Keyword(s): 
Last Modified: 07-NOV-1999

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Mail Software Development Kit (SDK) for HyperCard, versions 2.0, 3.0 
-------------------------------------------------------------------------------

SUMMARY
=======

The following command returns a list of user names in Microsoft Mail version
2.00:

  msmail (getUserList [,"local" or "all"] [,searchPattern]
  [,"leading" or "embedded" or "exact"] [,extended]) => userNames

In Mail version 3.00, the second argument is expanded to include "Address" for
addresses from the user's address book.

If "local" is asked for (the default), then only users on the same server will be
returned; if "all" is asked for, the routine returns all users on the network
that can be reached via Microsoft Mail.

An optional "searchPattern" can be passed so that only a subset of users is
returned. This allows you to specify only part of a name.

The following three search modes can be used:

1. "leading" -- will match the searchPattern if it is at the start of a user
  name

2. "embedded" -- all user names containing the pattern anywhere within
  themselves

3. "exact" -- only users whose name exactly matches searchPattern

If "extended" is true (the default), then the name(s) are returned in the form
"userName@serverName".

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

Additional query words:

======================================================================
Keywords          :  
Technology        : kbHWMAC kbOSMAC kbAudDeveloper kbMailSearch kbSDKSearch kbSDKMailHypercard200 kbSDKMailHypercard300
Version           : :2.0,3.0

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" 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.

Copyright Microsoft Corporation 1986-2002.