C Style API
bbOrigGetCustomHeader() Function

Returns a custom header value from the original email message that was sent to the recipient.

bbOrigGetCustomHeader (sMessageText, sReturn, lLength, sCustomHeader)



Null terminated character array containing the email message that you need to retrieve the custom header value from.

sReturn [out]

Null terminated 255 character array. Returns the content of the custom header.

lLength [out]

Returns a long value. Contains the length of the value returned in sReturn.


Null terminated character array. Specifies the custom header you want to retrieve.

Syntax - (Visual Basic)

' ** Pad sValue out parameter with spaces.
sValue = String(255, " ")

' ** Call Subroutine: Retrieve "X-CampaignId:" header.
Call bbOrigGetCustomHeader(sMessage, sValue, lLength, "x-campaignid")

' ** Set value
sCustomHeaderFromOriginalMessage = Left(sValue, lLength)


For more examples, and language specific declarations, see sample source code files that came with BoogieBounce API.

See Also

Visual Basic Users
Power Basic Users