$Log$
+ Revision 601.47 2002/10/23 04:06:41 ajc
+ * "conflicts" check now also tells the client whether a conflicting event
+ is really just an older version of the same object.
+
Revision 601.46 2002/10/23 03:55:21 ajc
* Finished: when saving an object of type text/calendar to the Calendar> room,
set the Citadel "extended message ID" to the UID of the VEVENT object. This
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
icalproperty *p;
char conflict_event_uid[SIZ];
char conflict_event_summary[SIZ];
+ char compare_uid[SIZ];
cal = (icalcomponent *)data;
+ strcpy(compare_uid, "");
strcpy(conflict_event_uid, "");
strcpy(conflict_event_summary, "");
p = ical_ctdl_get_subprop(cal, ICAL_DTEND_PROPERTY);
if (p != NULL) t1end = icalproperty_get_dtend(p);
+ p = ical_ctdl_get_subprop(cal, ICAL_UID_PROPERTY);
+ if (p != NULL) {
+ strcpy(compare_uid, icalproperty_get_comment(p));
+ }
+
p = ical_ctdl_get_subprop(ird.cal, ICAL_UID_PROPERTY);
if (p != NULL) {
strcpy(conflict_event_uid, icalproperty_get_comment(p));
}
+
p = ical_ctdl_get_subprop(ird.cal, ICAL_SUMMARY_PROPERTY);
if (p != NULL) {
strcpy(conflict_event_summary, icalproperty_get_comment(p));
icalcomponent_free(ird.cal);
if (ical_ctdl_is_overlap(t1start, t1end, t2start, t2end)) {
- cprintf("%ld||%s|%s|\n",
+ cprintf("%ld||%s|%s|%d|\n",
msgnum,
conflict_event_uid,
- conflict_event_summary
+ conflict_event_summary,
+ ( ((strlen(compare_uid)>0)
+ &&(!strcasecmp(compare_uid,
+ conflict_event_uid))) ? 1 : 0
+ )
);
}
}