[Remind-Fans] Remove reminders at vacation days
David F. Skoll
dfs at roaringpenguin.com
Mon Jun 21 08:43:05 EDT 2010
Jostein Berntsen wrote:
> I have added my vacation days to remind by using this code:
It's far too complex. You are abusing Remind; you need to follow
the Remind Zen. Also, the SKIP keyword does not work without an OMIT, so
using it in your example is pointless. I would do it this way:
# The following needs Remind >= 3.1.8
REM 2010-06-30 *1 UNTIL 2010-07-05 MSG Vacation
REM 2010-07-11 *1 UNTIL 2010-07-26 MSG Vacation
REM 2010-08-30 *1 UNTIL 2010-09-09 MSG Vacation
REM 2010-10-01 *1 UNTIL 2010-10-09 MSG Vacation
FSET vacation_2010(x) (evaltrig("2010-06-30 *1 UNTIL 2010-07-05") == x) || \
(evaltrig("2010-07-11 *1 UNTIL 2010-07-26") == x) || \
(evaltrig("2010-08-30 *1 UNTIL 2010-09-09") == x) || \
(evaltrig("2010-10-01 *1 UNTIL 2010-10-09") == x)
REM Mon Tue Wed Thu Fri SKIP \
OMITFUNC vacation_2010 \
AT 7:45 DURATION 8:00 MSG Work
Regards,
David.
More information about the Remind-fans
mailing list