MailBoxGetMsgEx

sql

FUNCTION MailBoxGetMsgEx(IN mailbox HANDLE, IN id INT, IN flag INT) RETURNS INT;

Parameters

mailbox handle of the mailbox
id letter identifier
flag flag specifying the extent of text copying

Since version

7.0d

Description

This function is the enhanced form of the MailBoxGetMsg function.

This function reads a part of the specified letter (according to the flag parameter) from the mailbox (specified in the profile) of the mailing system and stores it into the system table _INBOXMSGS into the Body or Header column.

The reading extent can be specified in the flag parameter. This parameter may have these values:

MBL_BODY 1 The letter texts including the headers wil be stored in the database (columns Body and Header)
MBL_HDRONLY 4 Only the headers will be stored in the database (column Header) - not for MAPI
MBL_MSGONLY 8 Only the letter texts will be stored in the database (column Body)

Function value

This function returns 0 if successful, the error number otherwise.

See