MessageList Event
Fired when a message is retrieved from the server.
Syntax
ANSI (Cross Platform) virtual int FireMessageList(Office365MessageListEventParams *e);
typedef struct {
const char *Id;
const char *Subject;
const char *MessageSender;
const char *ReceivedDateTime;
const char *SentDateTime;
int HasAttachments;
const char *BodyContentType;
const char *BodyContent;
const char *BodyPreview; int reserved; } Office365MessageListEventParams; Unicode (Windows) virtual INT FireMessageList(Office365MessageListEventParams *e);
typedef struct {
LPCWSTR Id;
LPCWSTR Subject;
LPCWSTR MessageSender;
LPCWSTR ReceivedDateTime;
LPCWSTR SentDateTime;
BOOL HasAttachments;
LPCWSTR BodyContentType;
LPCWSTR BodyContent;
LPCWSTR BodyPreview; INT reserved; } Office365MessageListEventParams;
- (void)onMessageList:(NSString*)id :(NSString*)subject :(NSString*)messageSender :(NSString*)receivedDateTime :(NSString*)sentDateTime :(BOOL)hasAttachments :(NSString*)bodyContentType :(NSString*)bodyContent :(NSString*)bodyPreview;
#define EID_OFFICE365_MESSAGELIST 6 virtual INT CLOUDMAIL_CALL FireMessageList(LPSTR &lpszId, LPSTR &lpszSubject, LPSTR &lpszMessageSender, LPSTR &lpszReceivedDateTime, LPSTR &lpszSentDateTime, BOOL &bHasAttachments, LPSTR &lpszBodyContentType, LPSTR &lpszBodyContent, LPSTR &lpszBodyPreview);
Remarks
The MessageList event is fired for each folder retrieved from the server when ListMessages is called.