bBounce Object
GetCustomHeaderOriginalMessage Method

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

string GetCustomHeaderOriginalMessage (string sCustomHeader)



Parameters

sCustomHeader

Specifies the custom header you want to retrieve.

Syntax

sDate = bBounceX.GetCustomHeaderOriginalMessage("Date")

Return Values

Returns the value of the specified custom header. For example, the syntax above would set the sDate variable to "Mon, 21 Aug 00 13:50:20 -0700", if the RawMessageBuffer Property contained the message below.

<---- Begin Sample Message ---->
Date: Fri, 14 Nov 2003 14:00:01 -0500
Message-ID: <AauNjVuMhvq0000007c@elsewhere.com>
From: "Mr. PostMaster" <postmaster@elsewhere.com>
Reply-To: "My Reply Account" <postmaster_reply@elsewhere.com>
To: "Mrs. Someone" 
Subject: Failure Notice

Hi. This is the mail transport agent at mail.elsewhere.com.
I'm afraid I wasn't able to deliver your message to the 
following addresses.  This is a permanent error; I've 
given up. If you have questions about this notice, please
forward it to postmaster@elsewhere.com along with your 
comments.

<john@smith.com>:
Sorry, this account has been deactivated. (#5.2.1)

--- Below this line is a copy of the message.

Return-Path: <someone@somewhere.com>
From: "Mrs. Someone" <someone@somewhere.com>
Reply-To: "Mrs. Someone" <someone_reply@somewhere.com>
To: "John Smith" <john@smith.com>
Date: Mon, 21 Aug 00 13:50:20 -0700
Subject: JOE.NET NEWS!
MIME-Version: 1.0
Message-ID: <agW2wx6Di110f7@somewhere.com>

This is a multi-part message in MIME format.

etc. 
etc.
etc.
<---- End Sample Message ---->


Remarks

You must set the RawMessageBuffer Property to the RAW email message text that you wish to check, before calling the GetCustomHeaderOriginalMessage() Method.

See Also

GetCustomHeader() Method
RawMessageBuffer Property