diff options
author | Robin Houston <robin.houston@gmail.com> | 2011-12-30 16:49:24 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2011-12-30 16:49:24 +0000 |
commit | d941232e838ede8ef0de20d4cb4557bc3698b510 (patch) | |
tree | 5d370b59e0f479b78284902da2869a6cc9ee4457 /script/handle-mail-replies | |
parent | c73d6ff8d793c2eea250e4a959944e55133ecc79 (diff) |
Recognise a couple of newly-seen types of out-of-office message
Diffstat (limited to 'script/handle-mail-replies')
-rwxr-xr-x | script/handle-mail-replies | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/script/handle-mail-replies b/script/handle-mail-replies index 9451bc9f2..68cab9035 100755 --- a/script/handle-mail-replies +++ b/script/handle-mail-replies @@ -120,12 +120,21 @@ def is_oof?(message) end end + if message.header_string("Auto-Submitted") == "auto-generated" + if subject =~ /out of( the)? office/ + return true + end + end + if subject.start_with? "out of office autoreply:" return true end if subject == "out of office" return true end + if subject == "out of office reply" + return true + end if subject.end_with? "is out of the office" return true end |