diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-05-01 18:19:05 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-05-01 18:19:05 +0100 |
commit | c402c9aa3f96300eb1165364e6a0f1a50642297f (patch) | |
tree | 8650dcf413ecd1a17901bbe9b2f277c153f3270b /spec/script | |
parent | 89a640353f641c8b451bc22fcf4a68bd4dd1e886 (diff) |
Handle yet another style of bounce
Diffstat (limited to 'spec/script')
-rw-r--r-- | spec/script/handle-mail-replies_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/script/handle-mail-replies_spec.rb b/spec/script/handle-mail-replies_spec.rb index 0aa10323e..75a2aa6ad 100644 --- a/spec/script/handle-mail-replies_spec.rb +++ b/spec/script/handle-mail-replies_spec.rb @@ -24,6 +24,12 @@ describe "When filtering" do r.out.should == "failed.user@example.co.uk\n" end + it "should detect a MS Exchange non-permanent delivery error message" do + r = mail_reply_test("track-response-ms-bounce.email") + r.status.should == 1 + r.out.should == "" + end + it "should pass on a non-bounce message" do r = mail_reply_test("incoming-request-bad-uuencoding.email") r.status.should == 0 |