-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
I have a beta version of Remind that lets you use a user-defined function to specify OMITted days. Gory details are in the manual. To look at the beta, you'll need the "git" revision control tool. Grab a copy of the git repository as follows: git clone http://git.roaringpenguin.com/Remind.git Remind.git That'll create a "Remind.git/" directory with the latest beta code. Build and install as usual. The new feature lets you solve the "garbage-day" problem more elegantly. For example: Our paper recycling is collected on a 14-day cyle, normally on a Friday. However, if *any* of Monday through Friday of the week containing the collection is a holiday, the collection is moved to the Saturday. Plastic recycling follows similar rules, offset by (nominally) 7 days. Before, you had to use a bunch of SATISFY clauses to get this to work. Now it's simply: #------------------------------------------------------------------------ FSET _garbhol(x) wkdaynum(x) == 5 && nonomitted(x-4, x+1) < 5) REM 12 November 1999 *14 AFTER OMITFUNC _garbhol MSG Paper Recycling REM 19 November 1999 *14 AFTER OMITFUNC _garbhol MSG Plastic Recycling #------------------------------------------------------------------------ The OMITFUNC lets you write a function that says whether or not a day should be "omitted"; the AFTER clause moves the reminder past omitted days. In this case, the _garbhol function returns true ONLY if (1) the day in question is a Friday, and (2) there is at least one globally-omitted day in the range of preceding Monday - Friday. There are also a few minor fixes to tkremind in the beta code. Please hammer on this to make sure I didn't break anything! Regards, David. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIvgNewYQuKhJvQuARAu7TAJ0a0mfjtg1uADnakq7irlOBxHgQ4gCeO4b2 Yz42JJAoCPh1TebYZkDHMbg= =+9om -----END PGP SIGNATURE----- _______________________________________________ Remind-fans mailing list [email protected] http://lists.whatexit.org/mailman/listinfo/remind-fans
