PC MAPI: MAPISendDocuments Removes Spaces in Filenames

Last reviewed: March 31, 1995
Article ID: Q128370
The information in this article applies to:
  • Microsoft Mail for PC Networks, versions 3.0 and 3.2

SYMPTOMS

The Simple Messaging Application Programming Interface (MAPI) function MAPISendDocuments, which is included with Microsoft Mail for PC Networks, handles file names with space characters incorrectly. File names with spaces are fairly common on advanced file systems, such as NTFS. MAPISendDocuments actually removes the spaces and truncates the file name.

When you attempt to pass a file name with spaces in it MAPISendDocuments will display the following error,

   The file "XXXXXXXX" could not be accessed

where XXXXXXX is the file name (with spaces omitted).

WORKAROUND

All files passed to MAPISendDocuments should not contain space characters. If you do have some files with spaces, rename the file to remove the spaces.

NOTE: Some development tools have functions that will convert the filename to a standard MS-DOS 8.3 format. In Microsoft VC++ version 2.0, the function GetShortPathName will convert the filename.

STATUS

Microsoft has confirmed this to be a problem with versions 3.0 and 3.2 of Microsoft Mail for PC Networks. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional reference words: 3.00 3.20
KBCategory: kbtool kbprg kbbug3.00 kbbug3.20
KBSubcategory: MailPCMAPI


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.

Last reviewed: March 31, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.