Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
lprintf(CTDL_DEBUG, "Final selection: %s\n", actual_rm);
if (strcasecmp(actual_rm, CC->room.QRname)) {
- getroom(&CC->room, actual_rm);
+ /* getroom(&CC->room, actual_rm); */
+ usergoto(actual_rm, 0, 1, NULL, NULL);
}
/*
/* Go back to the room we started from */
lprintf(CTDL_DEBUG, "Returning to original room %s\n", hold_rm);
if (strcasecmp(hold_rm, CC->room.QRname))
- getroom(&CC->room, hold_rm);
+ /* getroom(&CC->room, hold_rm); */
+ usergoto(hold_rm, 0, 1, NULL, NULL);
/* For internet mail, generate delivery instructions.
* Yes, this is recursive. Deal with it. Infinite recursion does
/* First determine if this is a calendar or tasks room */
if ( (CC->curr_view != VIEW_CALENDAR)
&&(CC->curr_view != VIEW_TASKS) ) {
+ lprintf(CTDL_DEBUG, "*** FIXME FOOFOO NOT SAVING FOOFOO FIXME ***\n");
return(0); /* Not a vCalendar-centric room */
}
/* It must be an RFC822 message! */
if (msg->cm_format_type != 4) {
+ lprintf(CTDL_DEBUG, "*** FIXME BARBAR NOT SAVING BARBAR FIXME ***\n");
return 1; /* You tried to save a non-RFC822 message! */
}
void generate_uuid(char *buf) {
static int seq = 0;
- sprintf(buf, "%08x-%04x-%04x-%04x-%012x",
- (int)time(NULL),
- (seq++),
+ sprintf(buf, "%lx-%x-%x",
+ time(NULL),
getpid(),
- rand(),
- rand()
+ (seq++)
);
}
$Log$
+Revision 611.4 2005/06/06 23:50:17 ajc
+* Made some changes to the calendar/uuid logic to fix a bug that caused
+ duplicate entries for an event to appear in some situations
+
Revision 611.3 2005/06/06 16:20:36 ajc
* GroupDAV URI escape character is now '%' in order to be consistent...
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
"<a href=\"/handle_rsvp?msgnum=%ld&cal_partnum=%s&sc=Ignore\">Ignore</a>"
"</font>"
"</TD></TR>\n",
+ msgnum, cal_partnum,
msgnum, cal_partnum
);
strcpy(summ.from, &buf[5]);
}
if (!strncasecmp(buf, "subj=", 5)) {
- strcpy(summ.subj, &buf[5]);
+ if (strlen(&buf[5]) > 0) {
+ strcpy(summ.subj, &buf[5]);
+ }
}
/* if (!strncasecmp(buf, "rfca=", 5)) {
strcat(summ.from, " <");
}
+
/*
* Generate a new, globally unique UID parameter for a calendar etc. object
*/
void generate_uuid(char *buf) {
static int seq = 0;
- sprintf(buf, "%08x-%04x-%04x-%04x-%012x",
- (int)time(NULL),
- (seq++),
+ sprintf(buf, "%s-%lx-%x-%x",
+ serv_info.serv_nodename,
+ time(NULL),
getpid(),
- rand(),
- rand()
+ (seq++)
);
}