User Tools

Site Tools


reference:user_routing_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
reference:user_routing_script [2021/02/19 09:51] paulreference:user_routing_script [2023/03/27 11:32] (current) paul
Line 68: Line 68:
 </code> </code>
  
 +====If the current time is between 10:00 on 2nd March 2023 and 17:00 on 5th March 2023, then forward====
 +
 +<code>
 +now = os.date("%Y-%m-%d %H:%M")
 +if (now >= "2023-03-02 10:00") and (now <= "2023-03-05 17:00") then
 +  Forwards = "person@mycompany.com";
 +  UseForwards = true;
 +  ShouldForward = true;
 +end
 +</code>
reference/user_routing_script.txt · Last modified: 2023/03/27 11:32 by paul