From: Art Cancro Date: Mon, 20 Oct 2008 21:05:33 +0000 (+0000) Subject: recurrence editor X-Git-Tag: v7.86~1840 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f62879984d22f38f3c112df50b15599c88ca89bd recurrence editor --- 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;