bsGetOrigCustomHeader()
Returns a custom header value from the original email message that was sent to the recipient.
Parameters
sMessageText
A character array containing the RAW email message. Pass the RAW email message text in via this parameter.
For formatting requirements of a RAW email message, click here.
sReturnValue [out]
Pointer to a character array. Returns a pointer to the contents of the
custom header value you want to retrieve.
sCustomHeader
A character array specifying the custom header you want to retrieve. You must pass this parameter as lower case (ie. "subject" not "Subject").
Syntax - (ANSI C)
char *sRawMessage, *sReturnValue;
sRawMessage = "{RAW Email Message}";
bsGetOrigCustomHeader(sRawMessage, &sReturnValue, "x-campaignid");
Remarks
The sample code above will return the value of the "x-campaignid" header from the original email message
that was sent to the recipient. You can retrieve any header you wish with this subroutine, not just the
"x-campaignid" header value.
For more examples, and language specific declarations, see sample source code files that
came with BounceStudio API.