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

Commit

Permalink
Merge pull request #6 from z38/feature-originalrecipient
Browse files Browse the repository at this point in the history
Support for OriginalRecipient field
  • Loading branch information
jjaffeux committed May 17, 2015
2 parents 54e6b58 + fca32f0 commit a483ea1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ $inbound->FromEmail();
$inbound->FromFull();
$inbound->FromName();
$inbound->Date();
$inbound->OriginalRecipient();
$inbound->ReplyTo();
$inbound->MailboxHash();
$inbound->Tag();
Expand Down
1 change: 1 addition & 0 deletions fixtures/inbound.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"Name": "Another Cc"
}
],
"OriginalRecipient": "451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com",
"ReplyTo": "[email protected]",
"Subject": "This is an inbound message",
"MessageID": "22c74902-a0c1-4511-804f2-341342852c90",
Expand Down
5 changes: 5 additions & 0 deletions test/Postmark/Tests/InboundTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public function testDate()
$this->assertEquals($this->inbound->Date(), 'Thu, 5 Apr 2012 16:59:01 +0200');
}

public function testOriginalRecipient()
{
$this->assertEquals($this->inbound->OriginalRecipient(), '451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com');
}

public function testReplyTo()
{
$this->assertEquals($this->inbound->ReplyTo(), '[email protected]');
Expand Down

0 comments on commit a483ea1

Please sign in to comment.