[Remind-Fans] Remove reminders at vacation days
Jostein Berntsen
jbernts at broadpark.no
Mon Jun 21 09:19:24 EDT 2010
On 21.06.10,08:43, David F. Skoll wrote:
> 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
>
Thanks, I have upgraded remind to v.3.1.9 and entered this code in the
.reminders file, but it did not remove my recurring reminders at f.ex.
2010-07-01. This is an example of my reminders:
REM Thursday +1 AT 12:00 DURATION 1:00 MSG R....
Jostein
More information about the Remind-fans
mailing list