Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit a483ea1

Browse files
committed
Merge pull request #6 from z38/feature-originalrecipient
Support for OriginalRecipient field
2 parents 54e6b58 + fca32f0 commit a483ea1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ $inbound->FromEmail();
3838
$inbound->FromFull();
3939
$inbound->FromName();
4040
$inbound->Date();
41+
$inbound->OriginalRecipient();
4142
$inbound->ReplyTo();
4243
$inbound->MailboxHash();
4344
$inbound->Tag();

fixtures/inbound.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"Name": "Another Cc"
2727
}
2828
],
29+
"OriginalRecipient": "451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com",
2930
"ReplyTo": "myUsersReplyAddress@theirDomain.com",
3031
"Subject": "This is an inbound message",
3132
"MessageID": "22c74902-a0c1-4511-804f2-341342852c90",

test/Postmark/Tests/InboundTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public function testDate()
3232
$this->assertEquals($this->inbound->Date(), 'Thu, 5 Apr 2012 16:59:01 +0200');
3333
}
3434

35+
public function testOriginalRecipient()
36+
{
37+
$this->assertEquals($this->inbound->OriginalRecipient(), '451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com');
38+
}
39+
3540
public function testReplyTo()
3641
{
3742
$this->assertEquals($this->inbound->ReplyTo(), 'myUsersReplyAddress@theirDomain.com');

0 commit comments

Comments
 (0)