TMailProp

Data Structure

The TMailProp defines the properties of mail message object.

 

Delphi syntax:

TMailProp = packed record

MessageID,

Header,

SenderName,

SenderAddr,

RecipientNames,

RecipientAddresses,

CC,

CCNames,

CCAddresses,

BCC,

BCCNames,

BCCAddresses,

Subject: TMString;

NewsGroup: Boolean;

HasAttach: Boolean;

Size: int64;

CreateDate: FileTime;

RecvDate: FileTime;

end;

 

C++ syntax:

typedef struct _MAILPROP {

TMString MessageID,

Header,

SenderName,

SenderAddr,

RecipientNames,

RecipientAddresses,

CC,

CCNames,

CCAddresses,

BCC,

BCCNames,

BCCAddresses,

Subject;

BOOLEAN NewsGroup;

BOOLEAN HasAttach;

LONGLONG Size;

FILETIME CreateDate;

FILETIME RecvDate;

} MAILPROP, *PMAILPROP;

 

C# syntax:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]

public struct MailProp

{

[MarshalAs(UnmanagedType.ByValTStr, SizeConst = MConstants.MSTRING_LENGTH)]

public string

MessageID,

Header,

SenderName,

SenderAddr,

RecipientNames,

RecipientAddresses,

CC,

CCNames,

CCAddresses,

BCC,

BCCNames,

BCCAddresses,

Subject;

[MarshalAs(UnmanagedType.I1)]

public bool

NewsGroup,

HasAttach;

[MarshalAs(UnmanagedType.I8)]

public Int64 Size;

public System.Runtime.InteropServices.ComTypes.FILETIME CreateDate;

public System.Runtime.InteropServices.ComTypes.FILETIME RecvDate;

}

 

Members: [warning: members can be not exists]

MessageID

unequal mail message identification number.

Header

RFC header, if present. Use GetMail API to get full mail message source code. [warning]

SenderName

sender name, like John or Bill. Can be not exists. [warning]

SenderAddr

sender address, like John@yahoo.com or Bill@gmail.com. Can be not exists. [warning]

RecipientNames

recipients names list, with ; separate char, like Shon;Marry;. [warning]

RecipientAddresses

recipients addresses list, with ; separate char, like Shon@msn.com;Marry@mail.org;. [warning]

CC

carbon Copy list, with names and addresses, in name1<address1>;name2<address2> format. [warning]

CCNames

carbon Copy names list.[warning]

CCAddresses

carbon Copy addresses list.[warning]

BCC

hided Carbon Copy list.[warning]

BCCNames

hided Carbon Copy names list. [warning]

BCCAddresses

hided Carbon Copy addresses list. [warning]

Subject

mail message subject. [warning]

NewsGroup

News Group flag, if True the mail message is News Group message, can be not downloaded with zero length body.

HasAttach

if true, the mail message has attach. Use GetAttachCount like alternative.

Size

mail message size in bytes.

CreateDate

mail creating date time in Windows FileDateTime format

RecvDate

mail recieving date time in Windows FileDateTime format

 

See also:

GetMailProp, OpenMailbox, GetFolderCount, GetFolderProp, GetMail, GetAttachCount, GetAttachProp

 

 

 

 

AIRMail SDK Team 2005-2008, please contact as