We've a customer who wants to send an automatic reply on days when he's out of the office.
Let's say that every Friday the incoming mails should be answered by saying that nobody is in the office. This doesn't exist in DA and I couldn't find a way to solve this using Hooks.
So I solved it with Sieve, as follows:
Is this a good solution or is there something better?
Let's say that every Friday the incoming mails should be answered by saying that nobody is in the office. This doesn't exist in DA and I couldn't find a way to solve this using Hooks.
So I solved it with Sieve, as follows:
Code:
require ["date","vacation"];
# rule:[never here on Friday]
if allof (currentdate :is "weekday" "5")
{
vacation :addresses "[email protected]" :subject "I am never here on Friday" "I'm never here on Fridays... l'll be back on Monday.";
}
Is this a good solution or is there something better?