StrBufAppendBufPlain(MsgBody, HKEY("Content-type: text/calendar\r\n\r\n"), 0);
StrBufAppendBufPlain(MsgBody, ser, serlen, 0);
- CM_SetAsFieldSB(msg, eMesageText, &MsgBody);
+ CM_SetAsFieldSB(msg, eMessageText, &MsgBody);
// Now write the data
CtdlSubmitMsg(msg, NULL, "");
memset(&ird, 0, sizeof ird);
strcpy(ird.desired_partnum, partnum);
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*ical_locate_part, // callback function
NULL,
NULL,
// recurse through subcomponents until we find one.
if (icalcomponent_isa(event) != ICAL_VEVENT_COMPONENT) {
for (c = icalcomponent_get_first_component(event, ICAL_VEVENT_COMPONENT);
- c != NULL;
- c = icalcomponent_get_next_component(event, ICAL_VEVENT_COMPONENT) ) {
+ c != NULL;
+ c = icalcomponent_get_next_component(event, ICAL_VEVENT_COMPONENT)
+ ) {
ical_merge_attendee_reply(c, reply);
}
return;
// Now do the same thing with the reply.
if (icalcomponent_isa(reply) != ICAL_VEVENT_COMPONENT) {
for (c = icalcomponent_get_first_component(reply, ICAL_VEVENT_COMPONENT);
- c != NULL;
- c = icalcomponent_get_next_component(reply, ICAL_VEVENT_COMPONENT) ) {
+ c != NULL;
+ c = icalcomponent_get_next_component(reply, ICAL_VEVENT_COMPONENT)
+ ) {
ical_merge_attendee_reply(event, c);
}
return;
e = icalproperty_get_attendee(e_attendee);
r = icalproperty_get_attendee(r_attendee);
- if ((e != NULL) &&
- (r != NULL) &&
- !strcasecmp(e, r)) {
+ if ((e != NULL) && (r != NULL) && !strcasecmp(e, r)) {
// ...and if they do, remove the attendee from the event
// and replace it with the attendee from the reply. (The
// reply's copy will have the same address, but an updated
}
oec.c = NULL;
mime_parser(
- CM_RANGE(msg, eMesageText),
+ CM_RANGE(msg, eMessageText),
*ical_locate_original_event, // callback function
NULL, NULL,
&oec, // user data
memset(&ird, 0, sizeof ird);
strcpy(ird.desired_partnum, partnum);
mime_parser(
- CM_RANGE(msg, eMesageText),
+ CM_RANGE(msg, eMessageText),
*ical_locate_part, // callback function
NULL,
NULL,
if (msg == NULL) return;
memset(&ird, 0, sizeof ird);
strcpy(ird.desired_partnum, "_HUNT_");
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*ical_locate_part, // callback function
NULL,
NULL,
memset(&ird, 0, sizeof ird);
strcpy(ird.desired_partnum, partnum);
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*ical_locate_part, /* callback function */
NULL, NULL,
(void *) &ird, /* user data */
if (msg == NULL) return;
memset(&ird, 0, sizeof ird);
strcpy(ird.desired_partnum, "_HUNT_");
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*ical_locate_part, /* callback function */
NULL, NULL,
(void *) &ird, /* user data */
if (msg == NULL) return;
memset(&ird, 0, sizeof ird);
strcpy(ird.desired_partnum, "_HUNT_");
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*ical_locate_part, /* callback function */
NULL, NULL,
(void *) &ird, /* user data */
return(1); /* You tried to save a non-RFC822 message! */
}
- if (CM_IsEmpty(msg, eMesageText)) {
+ if (CM_IsEmpty(msg, eMessageText)) {
return(1); /* You tried to save a null message! */
}
/* Do all of our lovely back-end parsing */
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*ical_obj_beforesave_backend,
NULL, NULL,
(void *)msg,
if (msg->cm_format_type != 4) return(1);
// Reject null messages
- if (CM_IsEmpty(msg, eMesageText)) return(1);
+ if (CM_IsEmpty(msg, eMessageText)) return(1);
// Now recurse through it looking for our icalendar data
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*ical_obj_aftersave_backend,
NULL, NULL,
NULL,