From f62879984d22f38f3c112df50b15599c88ca89bd Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 20 Oct 2008 21:05:33 +0000 Subject: [PATCH] recurrence editor --- webcit/event.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/webcit/event.c b/webcit/event.c index 61b389f13..eb016a275 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -904,13 +904,25 @@ void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *fr case ICAL_HOURLY_RECURRENCE: break; - /* These are the real options. */ + /* Daily is valid but there are no further inputs. */ case ICAL_DAILY_RECURRENCE: break; + + /* These are the real options. */ + case ICAL_WEEKLY_RECURRENCE: + j=0; + for (i=0; i<7; ++i) { + snprintf(buf, sizeof buf, "weekday%d", i); + if (YESBSTR(buf)) recur.by_day[j++] = + icalrecurrencetype_day_day_of_week(i+1); + } + recur.by_day[j++] = ICAL_RECURRENCE_ARRAY_MAX; break; + case ICAL_MONTHLY_RECURRENCE: break; + case ICAL_YEARLY_RECURRENCE: break; -- 2.30.2