$Log$
+ 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
+ causes the message base to automatically delete any existing instance(s) of
+ that object: automatic replacement.
+
Revision 601.45 2002/10/23 03:07:43 ajc
* First hack at UID-to-EMSGID mapping (for auto replacement)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
/* First determine if this is our room */
MailboxName(roomname, sizeof roomname, &CC->usersupp, USERCALENDARROOM);
- if (strncmp(roomname, msg->cm_fields['O'], ROOMNAMELEN))
- return 0; /* It's not us... */
+ if (strcasecmp(roomname, CC->quickroom.QRname)) {
+ return 0; /* It's not the Calendar room. */
+ }
/* Then determine content-type of the message */
a = strlen(p);
while (--a > 0) {
if (!strncasecmp(p, "Content-Type: ", 14)) { /* Found it */
- if (!strncasecmp(p + 14, "text/calendar", 15)) {
+ if (!strncasecmp(p + 14, "text/calendar", 13)) {
strcpy(eidbuf, "");
mime_parser(msg->cm_fields['M'],
NULL,