aboutsummaryrefslogtreecommitdiffstats
path: root/script/handle-mail-replies
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2012-01-06 18:54:37 +0100
committerDavid Cabo <david@calibea.com>2012-01-06 18:54:37 +0100
commitd4f3ca2a2f7cc68663a9ca005cf379533032d232 (patch)
treef6d2a07fd1e4f8e1091d5df765b68140db5e47ca /script/handle-mail-replies
parent7ed887f0989425d9e412890800df05637b08c025 (diff)
parent766d696d5b914520b0b9367e9b9a9decab87ea5f (diff)
Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5
Diffstat (limited to 'script/handle-mail-replies')
-rwxr-xr-xscript/handle-mail-replies9
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