[Remind-Fans] remind+wyrd && in-advance reminders - the revenge

Javier Rojas jerojasro at gmail.com
Tue Mar 13 00:09:15 EDT 2007


Hi list,

I took the patch made by Frank Terbeck (thanks a lot!) which enables
wyrd+remind to show the in-advance warnings in the "untimed reminders" window
of wyrd and modified it a bit. Instead of adding a new flag to remind, it
modifies the output of "remind -s", so it shows the in-advance warnings as
untimed reminders. It works fine in wyrd, although I don't know if it would
break other apps.

Mmhh... it is mostly intended to be used with wyrd. The original patch worked
fine with reminders located in the future, but it messed up everything with
reminders that had already passed (they repeated through my calendar tons of
times :( ). Which is why I made this (ugly) patch. Hope it will be useful

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %< %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--- ../../../remind-03.00.24/src/calendar.c     2005-09-29
22:29:32.000000000 -0500
+++ calorig     2007-03-12 22:54:31.000000000 -0500
@@ -648,7 +648,10 @@

     /* If trigger date == today, add it to the current entry */
     DBufInit(&obuf);
-    if (jul == JulianToday) {
+    if (jul == JulianToday || (DoSimpleCalendar &&
ShouldTriggerReminder(&trig, &tim, jul))) {
+    if (jul != JulianToday && DoSimpleCalendar) {
+      tim.ttime = NO_TIME;
+    }
        NumTriggered++;
        if (DoSimpleCalendar || tim.ttime != NO_TIME) {
            if (DBufPuts(&obuf, SimpleTime(tim.ttime)) != OK) {
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %< %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-- 
Javier Rojas

GPG Key ID: 0xA1C57061
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.roaringpenguin.com/pipermail/remind-fans/attachments/20070312/9d5bcd12/attachment.pgp>


More information about the Remind-fans mailing list