]> code.citadel.org Git - citadel.git/commitdiff
beforesave hook for calendar rooms no longer rejects
authorArt Cancro <ajc@citadel.org>
Tue, 13 Mar 2007 01:57:49 +0000 (01:57 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 13 Mar 2007 01:57:49 +0000 (01:57 +0000)
messages not of type text/calendar.  We cannot maintain this level of purity
anymore because the Bynari connector will attempt to store multipart/mixed as
well as metadata.

citadel/serv_calendar.c

index ebff59970622d403d39aa2f8dd10c7d9fa737fc2..c6434eb4cc07d271b51f00417da779f6d7b46265 100644 (file)
@@ -1970,15 +1970,8 @@ int ical_obj_beforesave(struct CtdlMessage *msg)
                                        msg->cm_fields['T'] = strdup("000000000000000000");
                                        sprintf(msg->cm_fields['T'], "%ld", imm.dtstart);
                                }
-                               return 0;
-                       }
-                       else {
-                               return 0;
-                               /*
-                               lprintf(CTDL_DEBUG, "Rejecting non-icalendar message\n");
-                               return 1;
-                               */
                        }
+                       return 0;
                }
                p++;
        }