Change AutoResponse Global Template based on time of the day
rjandric at yahoo.com
Wed Oct 15 13:48:37 EDT 2014
Thank you Emmanuel!
I was looking into it and since Perl is not my first language ;) I was
thinking on using custom conditions something like listed here:
The idea is to have 2 AutoResponse templates with different messages, one
for daytime own done for after hours. When the ticket is created, this
condition is evaluated and proper AutoResponse Template is used. I was
thinking about something along these lines (snippet from the web):
@months = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec );
@days = qw(Sun Mon Tue Wed Thu Fri Sat Sun);
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
print "$mday $months[$mon] $days[$wday]\n";
Modifying above script I can get the value of $hour and put it in the
if ($hour >= 8 && $hour <= 17) return 1
and in second template
if ($hour < 8 && $hour > 17) return 1
Am I on the right track?
View this message in context: http://requesttracker.8502.n7.nabble.com/Change-AutoResponse-Global-Template-based-on-time-of-the-day-tp58825p58844.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
More information about the rt-users