On Fri, 23 Jun 2017 14:46:21 +0200, Stephan Bosch stated:>Op 21-6-2017 om 19:16 schreef lejeczek: >> hi fellas >> >> generic construct for(if possible): reply vacation message if >> address is not from add1 at com1 add2 at com2 >> >> would you share? > >require "vacation"; > >if not address "from" ["add1 at com1", "add2 at com2"] { > vacation "I am on vacation."; >} > >Regards, > >Stephan.I have used this myself. I have always wondered though is it possible to have a vacation message only sent on a weekend. This is the scenario. My office closes on Friday at 4pm and does not reopen until Monday at 9am. I would like to automate a way to have a message sent that states that to customers who send us emails on the weekend. Right now I have to do it manually. Is there another way to do it? Thanks! -- Jerry
On 6/23/17, 9:13 AM, "dovecot on behalf of Jerry" <dovecot-bounces at dovecot.org on behalf of jerry at seibercom.net> wrote: On Fri, 23 Jun 2017 14:46:21 +0200, Stephan Bosch stated: >Op 21-6-2017 om 19:16 schreef lejeczek: >> hi fellas >> >> generic construct for(if possible): reply vacation message if >> address is not from add1 at com1 add2 at com2 >> >> would you share? > >require "vacation"; > >if not address "from" ["add1 at com1", "add2 at com2"] { > vacation "I am on vacation."; >} > >Regards, > >Stephan. I have used this myself. I have always wondered though is it possible to have a vacation message only sent on a weekend. This is the scenario. My office closes on Friday at 4pm and does not reopen until Monday at 9am. I would like to automate a way to have a message sent that states that to customers who send us emails on the weekend. Right now I have to do it manually. Is there another way to do it? Thanks! Look at the ?date? extension: https://tools.ietf.org/html/rfc5260#section-4
Op 23-6-2017 om 16:15 schreef Larry Rosenman:> On 6/23/17, 9:13 AM, "dovecot on behalf of Jerry" <dovecot-bounces at dovecot.org on behalf of jerry at seibercom.net> wrote: > > On Fri, 23 Jun 2017 14:46:21 +0200, Stephan Bosch stated: > > >Op 21-6-2017 om 19:16 schreef lejeczek: > >> hi fellas > >> > >> generic construct for(if possible): reply vacation message if > >> address is not from add1 at com1 add2 at com2 > >> > >> would you share? > > > >require "vacation"; > > > >if not address "from" ["add1 at com1", "add2 at com2"] { > > vacation "I am on vacation."; > >} > > > >Regards, > > > >Stephan. > > > I have used this myself. I have always wondered though is it possible > to have a vacation message only sent on a weekend. This is the scenario. > My office closes on Friday at 4pm and does not reopen until Monday at > 9am. I would like to automate a way to have a message sent that states > that to customers who send us emails on the weekend. Right now I have > to do it manually. Is there another way to do it? > > Thanks! > > Look at the ?date? extension: > https://tools.ietf.org/html/rfc5260#section-4Specifically, use the "currentdate" test described in Section 5. Regards, Stephan.