This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
reference:user_routing_script [2018/11/14 10:45] – external edit 127.0.0.1 | reference:user_routing_script [2021/02/19 09:51] – paul | ||
---|---|---|---|
Line 42: | Line 42: | ||
< | < | ||
--Don' | --Don' | ||
- | if (string.find(Sender, | + | if string.find(Sender, |
ShouldForward = false; | ShouldForward = false; | ||
end | end | ||
</ | </ | ||
- | ====If | + | ====If the sender is user@domain.com forward to person@mycompany.com==== |
< | < | ||
--If the sender is user@domain.com forward to person@mycompany.com | --If the sender is user@domain.com forward to person@mycompany.com | ||
- | if (string.lower(Sender) == " | + | if string.lower(Sender) == " |
Forwards = " | Forwards = " | ||
UseForwards = true; | UseForwards = true; | ||
ShouldForward = true; | ShouldForward = true; | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | ====If the time is currently in the morning, override the assistant to send to someone else==== | ||
+ | |||
+ | < | ||
+ | now = os.date(" | ||
+ | if now.hour < 12 then | ||
+ | Assistants = " | ||
end | end | ||
</ | </ | ||