"<INPUT TYPE=\"submit\" NAME=\"sc\" "
"VALUE=\"Accept\">\n"
" "
+ "<INPUT TYPE=\"submit\" NAME=\"sc\" "
+ "VALUE=\"Tentative\">\n"
+ " "
"<INPUT TYPE=\"submit\" NAME=\"sc\" "
"VALUE=\"Decline\">\n"
"<INPUT TYPE=\"hidden\" NAME=\"msgnum\" "
/*
* Add a calendar object to the user's calendar
*/
-void cal_add(icalcomponent *cal, int recursion_level) {
+void cal_add(icalcomponent *cal, int recursion_level, int tentative) {
icalcomponent *c;
/*
(c != 0);
c = icalcomponent_get_next_component(cal, ICAL_ANY_COMPONENT)) {
/* Recursively process subcomponent */
- cal_add(c, recursion_level+1);
+ cal_add(c, recursion_level+1, tentative);
}
}
/* Save this in the user's calendar if necessary */
if (!strcasecmp(bstr("sc"), "Accept")) {
- cal_add(cal, 0);
+ cal_add(cal, 0, 0);
+ }
+ if (!strcasecmp(bstr("sc"), "Tentative")) {
+ cal_add(cal, 0, 1);
}
/* Send a reply if necessary */