Re: "too many full OMITs"???
Rainer Clasen <bj@...
2009-01-07 14:45:47 GMT
David F. Skoll wrote:
> Rainer Clasen wrote:
> > for scheduling my private activities I have a recurring entry for "work"
> > and a bunch of OMIT's for each day I've vacation (BTW: unfortunatly ranges
> > don't seem to work with OMIT):
> I'd recommend upgrading to Remind 3.1.6 and rewriting your reminders
> to use computed OMITs. Or, you can recompile Remind to increase
> MAX_FULL_OMITS. (In fact, I believe 3.1.6 increases it from 75 to 250,
> which might be all you need.)
Thanks for your hint. Looking at OMITFUNC I've been remembered of SATISFIY
(which is sufficient for this case):
FSET between(x,a,b) (x>=a && x <=b)
FSET vacation_2009(x) ( 0 \
|| between(x, '2009-3-6', '2009-3-23' )\
|| between(x, '2009-7-30', '2009-8-2' )\
FSET vacation(x) ( vacation_2009(x) || vacation_2008(x))
REM SATISFY [ vacation(today()) ] MSG vacation
REM mon thu wed tue fri SKIP \
AT 8:00 DURATION 9:00 \
SATISFY [!vacation(today())] \
Oh, yeah, removing last year's stuff was too easy ;)