View Issue Details

IDProjectCategoryView StatusLast Update
0006417JEDI VCL00 JVCL Componentspublic2015-09-14 14:09
ReportertetarddAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionwon't fix 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0006417: JvMail and JclMAPI use Anis version of API
DescriptionTested with D. XE2:

JvMail that uses JclMAPI use the Ansi version of the API. Microsoft says we should be using the Unicode version (search MAPISendMail and MAPISendMailW for example, see here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd296721(v=vs.85).aspx) as the Ansi may be removed from future version of Windows.

Hence, for Delphi versions that have Unicode strings as default, the Unicode API should be used by JclMAPI.

JclMAPI uses TMapiMessage defined in Winapi.mapi:

MapiMessage = record
    ...
    lpszSubject: LPSTR; { Message Subject }
    lpszNoteText: LPSTR; { Message Text }
    lpszMessageType: LPSTR; { Message Class }
    lpszDateReceived: LPSTR; { in YYYY/MM/DD HH:MM format }
    lpszConversationID: LPSTR; { conversation thread ID }
    ...
  end;
  TMapiMessage = MapiMessage;

LPSTR are AnsiStrings.
TagsNo tags attached.

Activities

obones

2015-09-14 14:09

administrator   ~0021199

MAPISendMailW is only available from Windows 8 onward, so we won't support it

Issue History

Date Modified Username Field Change
2015-07-08 10:31 tetardd New Issue
2015-09-14 11:25 obones Status new => acknowledged
2015-09-14 14:09 obones Note Added: 0021199
2015-09-14 14:09 obones Status acknowledged => resolved
2015-09-14 14:09 obones Resolution open => won't fix
2015-09-14 14:09 obones Assigned To => obones