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

Dianne Skoll dianne at skoll.ca
Sun Apr 9 10:52:06 EDT 2023


On Sat, 8 Apr 2023 21:26:58 -0500
Tim Chase via Remind-fans <remind-fans at lists.skoll.ca> 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

However, a workaround is to use:

PUSH
    # other OMITs in here, too
    # taking the summer off
    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.  Consider this file:

PUSH
    REM Fri FROM Apr 10 2023 UNTIL Apr 28 2023 ADDOMIT SATISFY [1] MSG %
    REM Fri SKIP +90 MSG 1: Weekly meeting %b.
POP
PUSH
    OMIT 2023-04-10 THROUGH 2023-04-28
    REM Fri SKIP +90 MSG 2: Weekly meeting %b.
POP

If I run that through Remind today (2023-04-09) I get this output:

Reminders for Sunday, 9th April, 2023 (today):

1: Weekly meeting in 12 days' time.

2: Weekly meeting in 26 days' time.

I'll leave it as an exercise for the reader to figure out why the output
is different (and why 1 is incorrect.)

Regards,

Dianne.


More information about the Remind-fans mailing list