diff options
author | David Cabo <david@calibea.com> | 2012-01-06 18:54:37 +0100 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2012-01-06 18:54:37 +0100 |
commit | d4f3ca2a2f7cc68663a9ca005cf379533032d232 (patch) | |
tree | f6d2a07fd1e4f8e1091d5df765b68140db5e47ca /script/handle-mail-replies | |
parent | 7ed887f0989425d9e412890800df05637b08c025 (diff) | |
parent | 766d696d5b914520b0b9367e9b9a9decab87ea5f (diff) |
Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5
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 |