/*
* Functions which handle calendar objects and their processing/display.
*
- * Copyright (c) 1996-2011 by the citadel.org team
+ * Copyright (c) 1996-2012 by the citadel.org team
*
* This program is open source software. You can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 3 of the
- * License, or (at your option) any later version.
+ * modify it under the terms of the GNU General Public License, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "webcit.h"
StrBufAppendPrintf(Target, _("Attendee:"));
StrBufAppendPrintf(Target, "</dt><dd>");
ch = icalproperty_get_attendee(p);
- if ((ch != NULL) && !strncasecmp(buf, "MAILTO:", 7)) {
+ if ((ch != NULL) && !strncasecmp(ch, "MAILTO:", 7)) {
/** screen name or email address */
safestrncpy(buf, ch + 7, sizeof(buf));
if (the_method == ICAL_METHOD_REQUEST) {
/* Check for conflicts */
- syslog(9, "Checking server calendar for conflicts...\n");
+ syslog(LOG_DEBUG, "Checking server calendar for conflicts...\n");
serv_printf("ICAL conflicts|%ld|%s|", msgnum, cal_partnum);
serv_getln(buf, sizeof buf);
if (buf[0] == '1') {
StrBufAppendPrintf(Target, "</dd>\n");
}
}
- syslog(9, "...done.\n");
+ syslog(LOG_DEBUG, "...done.\n");
StrBufAppendPrintf(Target, "</dl>");
if (buf[0] == '2') {
wc_printf("<img src=\"static/webcit_icons/calendar.png\"><span>");
if (!strcasecmp(bstr("sc"), "update")) {
- /* Translators: RSVP aka Répondez s'il-vous-plaît Is the term
- that the recipient of an ical-invitation should please
- answer this request. */
+ /// Translators: RSVP aka Répondez s'il-vous-plaît Is the term
+ /// that the recipient of an ical-invitation should please
+ /// answer this request.
wc_printf(_("Your calendar has been updated to reflect this RSVP."));
} else if (!strcasecmp(bstr("sc"), "ignore")) {
wc_printf(_("You have chosen to ignore this RSVP. "
if (!icaltime_is_null_time(dtend)) { /* Need duration for recurrences */
dur = icaltime_subtract(dtend, dtstart);
}
+ else {
+ dur = icaltime_subtract(dtstart, dtstart);
+ }
/*
* Just let libical iterate the recurrence, and keep looping back to the top of this function,
}
}
icalrecur_iterator_free(ritr);
- /* syslog(9, "Performed %d recurrences; final one is %s", num_recur, ctime(&final_recurrence)); */
+ /* syslog(LOG_DEBUG, "Performed %d recurrences; final one is %s", num_recur, ctime(&final_recurrence)); */
}
who[len-4] = 0;
}
- syslog(9, "freebusy requested for <%s>\n", who);
+ syslog(LOG_INFO, "freebusy requested for <%s>\n", who);
serv_printf("ICAL freebusy|%s", who);
serv_getln(buf, sizeof buf);
calendar_GetParamsGetServerCall,
NULL,
NULL,
+ NULL,
calendar_LoadMsgFromServer,
calendar_RenderView_or_Tail,
- calendar_Cleanup);
+ calendar_Cleanup,
+ NULL);
RegisterReadLoopHandlerset(
VIEW_CALBRIEF,
calendar_GetParamsGetServerCall,
NULL,
NULL,
+ NULL,
calendar_LoadMsgFromServer,
calendar_RenderView_or_Tail,
- calendar_Cleanup);
+ calendar_Cleanup,
+ NULL);