aboutsummaryrefslogtreecommitdiffstats
path: root/spec/script
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-04-30 11:02:34 +0100
committerRobin Houston <robin.houston@gmail.com>2012-04-30 11:02:34 +0100
commit89a640353f641c8b451bc22fcf4a68bd4dd1e886 (patch)
tree7d280b4e98ee9f997c9c2bb5421fe3c7664287fd /spec/script
parentcbe6736db771dc51b28b16bd7780e2fea4c4d0f4 (diff)
Recognise another variety of bounce message
Diffstat (limited to 'spec/script')
-rw-r--r--spec/script/handle-mail-replies_spec.rb6
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 ad58ea565..0aa10323e 100644
--- a/spec/script/handle-mail-replies_spec.rb
+++ b/spec/script/handle-mail-replies_spec.rb
@@ -18,6 +18,12 @@ describe "When filtering" do
r.out.should == "user@example.com\n"
end
+ it "should detect a WebShield delivery error message" do
+ r = mail_reply_test("track-response-webshield-bounce.email")
+ r.status.should == 1
+ r.out.should == "failed.user@example.co.uk\n"
+ end
+
it "should pass on a non-bounce message" do
r = mail_reply_test("incoming-request-bad-uuencoding.email")
r.status.should == 0