aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-09-08 01:56:43 +0100
committerRobin Houston <robin@lenny.robin>2011-09-08 01:56:43 +0100
commit71048a2bd639943801d626fa89e2dfcb2ebb7ee2 (patch)
treedefe6d1f138c68b962ff20bfa4366fab04b1d679 /script
parente35a213a5550382c6aeeeadf29abdd178c87ea32 (diff)
Improved OOF detection
Slightly improved detection of out-of-office messages, + tests.
Diffstat (limited to 'script')
-rwxr-xr-xscript/handle-mail-replies5
1 files changed, 4 insertions, 1 deletions
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