From 71048a2bd639943801d626fa89e2dfcb2ebb7ee2 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Thu, 8 Sep 2011 01:56:43 +0100 Subject: Improved OOF detection Slightly improved detection of out-of-office messages, + tests. --- spec/script/handle-mail-replies_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/script/handle-mail-replies_spec.rb') diff --git a/spec/script/handle-mail-replies_spec.rb b/spec/script/handle-mail-replies_spec.rb index 856476c3f..2ef8d6afa 100644 --- a/spec/script/handle-mail-replies_spec.rb +++ b/spec/script/handle-mail-replies_spec.rb @@ -29,5 +29,15 @@ describe "When filtering" do r.status.should == 1 r.out.should == "FailedUser@example.com\n" end + + it "should detect a generic out-of-office" do + r = mail_reply_test("track-response-generic-oof.email") + r.status.should == 2 + end + + it "should detect an Exchange-style out-of-office" do + r = mail_reply_test("track-response-exchange-oof-1.email") + r.status.should == 2 + end end -- cgit v1.2.3