Discuss this help topic in SecureBlackbox Forum
Retrieves the whole message from the server.
Declaration
Parameters
- ID - contains either message sequence number, or its UID.
- UID - defines how to treat the ID parameter. Set it to True if you provide message's UID, and to false if you provide the sequence number.
- Stream - stream where the retrieved message will be stored.
- HeaderCharset -
- BodyCharset - charset of the message body.
- Options - specifies parsing options.
- IgnoreHeaderNativeCharset -
- IgnoreBodyNativeCharset - specifies what charset must be applied to message body:
true - the one specified by BodyCharset;
false - the one specified in the message (if present). If not present, BodyCharset is used.
- ActivatePartHandlers - specifies whether to invoke handlers automatically:
true - if a handler is found for a message part, it will be invoked automatically during part processing;
false - even if the handler is found, it won't be invoked automatically.
- Message - TElMessage object where the result is saved.
- MessageRef - a reference to the TElMessage object where the result is saved.
TElMessageParsingOptions values
Return value
When the message has to be parsed, returns 0 (EL_OK) on success, 1 (EL_WARNING) if source data contains byte sequences illegal for given charsets. Error otherwise.
Description
Use this method to fetch message data.
The first override just saves the retrieved data to stream.
The second one attempts to parse this data into the provided TElMessage object.
Discuss this help topic in SecureBlackbox Forum