[Remind-Fans] ADDOMIT with SATISFY not working as expected

Tim Chase remind at tim.thechases.com
Sun Apr 9 16:44:49 EDT 2023


On 2023-04-09 Dianne Skoll wrote:
> On Sat, 8 Apr 2023 Tim Chase wrote:
> 
> >  PUSH
> >   REM Fri FROM Apr 10 2023 UNTIL Apr 28 2023 ADDOMIT SATISFY 1
> >   REM Fri SKIP MSG Weekly meeting
> >  POP
> 
> > but that doesn't seem to add the OMITs as I would expect because
> 
> That is a bug.  Fix is at
> https://git.skoll.ca/Skollsoft-Public/Remind/commit/562eb83bdee32e3c1703e5399907fb74b015f419

Sorry to make you sigh in the commit message :*)
But thanks for the quick fix!

> However, a workaround is to use:
> 
> PUSH
>     OMIT 2023-04-10 THROUGH 2023-04-28
>     REM Fri SKIP MSG Weekly meeting
> POP
> 
> That OMITs more than just Fridays, but the extra omitted days are irrelevant
> for the purpose of the weekly meeting reminder.
> 
> It also has slightly different semantics.
[snip]
> I'll leave it as an exercise for the reader to figure out why the output
> is different (and why 1 is incorrect.)

That does make sense as I believe the form I was using only finds
the *next* OMIT date and registers that, whereas the "OMIT …
THROUGH …" version omits all the dates in that range.  Which is
actually what I want, so I'll use your alternate form.  I think I
tried to do that initially, but may have used UNTIL rather than
THROUGH, gotten thrown by the error, shrugged, and reached for an
alternate tool.  Using THROUGH works as I intended.

Thanks again!

-tim








More information about the Remind-fans mailing list