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. --- script/handle-mail-replies | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'script/handle-mail-replies') diff --git a/script/handle-mail-replies b/script/handle-mail-replies index 93cdc8cfd..fa45d135a 100755 --- a/script/handle-mail-replies +++ b/script/handle-mail-replies @@ -93,8 +93,8 @@ end def is_oof?(message) # Check for out-of-office + subject = message.header_string("Subject") if message.header_string("Return-Path") == "<>" - subject = message.header_string("Subject") if subject.start_with? "Out of Office: " return true end @@ -103,6 +103,9 @@ def is_oof?(message) end end + if subject.start_with? "Out of Office AutoReply:" + return true + end return false end -- cgit v1.2.3