[Remind-Fans] OMIT a range of dates

David F. Skoll dfs at roaringpenguin.com
Tue Aug 31 10:43:45 EDT 2010


Mike Kelly wrote:

>   REM 01 Sep 2010 ++2 MSG %"Vacation%" %b%
>   OMIT [trigger(trigdate())]
>   REM 02 Sep 2010 ++2 MSG %"Vacation%" %b%
>   OMIT [trigger(trigdate())]
>   REM 03 Sep 2010 ++2 MSG %"Vacation%" %b%
>   OMIT [trigger(trigdate())]

It's almost always a mistake to use OMIT [trigger(tridate())] because
that can break the Remind algorithm.

If you are using Remind 3.1.9, you can use the new OMITFUNC keyword in
your reminders (which is also a bit tedious.)  It would go something
like this:

REM 1 Sep 2010 *1 ++2 UNTIL 3 Sep 2010 MSG %"Vacation%" %b%
FSET _hol(x) isomitted(x) || (x >= '2010-09-01' && x <= '2010-09-03')

Then:

REM Wed OMITFUNC _hol SKIP MSG Important Meeting

Please read the Remind man page for caveats about OMITFUNC.

Regards,

David.



More information about the Remind-fans mailing list