summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cgp_rule-vacation.html
diff options
context:
space:
mode:
authorivan <ivan>2010-08-06 00:45:30 +0000
committerivan <ivan>2010-08-06 00:45:30 +0000
commit821f08c9d3cbfb67a54a9f2e667d71787bb22a74 (patch)
tree8d41c2d9c82442d232818372695c2ff4d16f9c30 /httemplate/edit/process/cgp_rule-vacation.html
parent082913e7598de8f3ccc832ba5e876bd21517ef16 (diff)
communigate account rules: vacation & redirect all, RT#7514
Diffstat (limited to 'httemplate/edit/process/cgp_rule-vacation.html')
-rw-r--r--httemplate/edit/process/cgp_rule-vacation.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/httemplate/edit/process/cgp_rule-vacation.html b/httemplate/edit/process/cgp_rule-vacation.html
new file mode 100644
index 000000000..f10d72b73
--- /dev/null
+++ b/httemplate/edit/process/cgp_rule-vacation.html
@@ -0,0 +1,29 @@
+<% include('cgp_rule-simplified.html',
+ 'name' => '#Vacation',
+ 'priority' => 2,
+ 'redirect' => 'cgp_rule-vacation.html',
+ 'conditions' => [
+ { conditionname => 'Human Generated', },
+ { conditionname => 'From',
+ op => 'not in',
+ params => '#RepliedAddresses',
+ },
+ ( $cgi->param('VacationTill')
+ ? ( { conditionname => 'Current Date',
+ op => 'less than', #is less?
+ params => scalar($cgi->param('VacationTill')),
+ }
+ )
+ : ()
+ ),
+ ],
+ 'actions' => [
+ { action => 'Reply with',
+ params => scalar($cgi->param('VacationText')),
+ },
+ { action => "Remember 'From' in",
+ params => 'RepliedAddresses',
+ },
+ ],
+ )
+%>