diff options
author | Robin Houston <robin@lenny.robin> | 2011-09-08 01:56:43 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-09-08 01:56:43 +0100 |
commit | 71048a2bd639943801d626fa89e2dfcb2ebb7ee2 (patch) | |
tree | defe6d1f138c68b962ff20bfa4366fab04b1d679 /spec/script/handle-mail-replies_spec.rb | |
parent | e35a213a5550382c6aeeeadf29abdd178c87ea32 (diff) |
Improved OOF detection
Slightly improved detection of out-of-office messages, + tests.
Diffstat (limited to 'spec/script/handle-mail-replies_spec.rb')
-rw-r--r-- | spec/script/handle-mail-replies_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |