Form-to-icalrecur logic for monthly recurring events
authorArt Cancro <ajc@citadel.org>
Mon, 10 Nov 2008 21:43:54 +0000 (21:43 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 10 Nov 2008 21:43:54 +0000 (21:43 +0000)
webcit/event.c

index 041e5b83301084961117802b288a7fccd0ad1cfb..cabf2f9b9c6557bafb8dc7b942c86230773b7dce 100644 (file)
@@ -931,8 +931,9 @@ void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *fr
                                                recur.by_month_day[1] = ICAL_RECURRENCE_ARRAY_MAX;
                                        }
                                        else if (!strcasecmp(bstr("rrmonthtype"), "rrmonthtype_wday")) {
-                                               lprintf(9, "MONTHLY BY WDAY\n");
-                                               /* FIXME implement this */
+                                               recur.by_day[0] = (atoi(bstr("rrmweek")) * 8)
+                                                               + atoi(bstr("rrmweekday")) + 1;
+                                               recur.by_day[1] = ICAL_RECURRENCE_ARRAY_MAX;
                                        }
                                        break;