This
Is
A
Test
And the above 4 words are on different lines.
Return-path:
Envelope-to: safe@beforedawn.net
Delivery-date: Sun, 05 Jun 2005 18:18:01 +0100
Received: from bdawn by bellamy.uk-noc.com with local-bsmtp (Exim 4.43)
id 1Deyl5-0001cD-KQ
for safe@beforedawn.net; Sun, 05 Jun 2005 18:18:01 +0100
Received: from beforedawn.plus.com ([84.92.40.26] helo=theashtop)
by bellamy.uk-noc.com with esmtpa (Exim 4.43)
id 1Deyl5-0001c1-9W
for safe@beforedawn.net; Sun, 05 Jun 2005 18:17:59 +0100
From: "ash rust | beforedawn"
To:
Subject: Test
Date: Sun, 5 Jun 2005 18:17:32 +0100
Organization: beforedawn
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook, Build 11.0.6353
Thread-Index: AcVp8nT/7HWK0WF5TuSXwLREx7gbhA==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on bellamy.uk-noc.com
X-Spam-Level:
X-Spam-Status: No, score=-1.2 required=4.0 tests=AWL autolearn=unavailable
version=3.0.3
Message-Id:
Status: RO
X-Status:
X-Keywords:
X-UID: 360
It all seems to be working now but how do I change the envelope-to value so I can forward the mail on rather than send it back to the address that just received it.
Is there a way of getting the parsed headers changing some values and then converting that back into the raw format?
Would I just need to loop through the array and concatenate to make a string?
thanks
ash