]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar.c
* make readloop long-controlled
[citadel.git] / webcit / calendar.c
index 58df701806ef0448ad284af6d410cf6e29baa590..9dc2b07330ad9182b62cb4e5d6115e41641140ef 100644 (file)
@@ -374,14 +374,6 @@ void handle_rsvp(void)
 
 
 
-int Flathash(const char *str, long len)
-{
-       if (len != sizeof (int))
-               return 0;
-       else return *(int*)str;
-}
-
-
 
 /*
  * free memory allocated using libical
@@ -940,7 +932,7 @@ void save_individual_task(icalcomponent *supplied_vtodo, long msgnum, char* from
        }
 
        /** Go back to the task list */
-       readloop("readfwd");
+       readloop(readfwd);
 }
 
 
@@ -1000,18 +992,6 @@ void load_ical_object(long msgnum, int unread,
 
                        cal = icalcomponent_new_from_string(relevant_source);
                        if (cal != NULL) {
-                               /* FIXME temp */
-                               icalproperty *p;
-                               p = icalcomponent_get_first_property(cal, ICAL_DTSTART_PROPERTY);
-                               if (p) {
-                                       lprintf(9, "DTSTART IS %s\n", 
-                                               icaltime_as_ical_string(
-                                                       icalproperty_get_dtstart(p)
-                                               )
-                                       );
-                               }
-                               /* */
-
 
                                /* A which_kind of (-1) means just load the whole thing */
                                if (which_kind == (-1)) {
@@ -1124,7 +1104,8 @@ void save_event(void) {
        msgnum = lbstr("msgnum");
 
        if (msgnum > 0L) {
-               load_ical_object(msgnum, 0, ICAL_VEVENT_COMPONENT, save_individual_event, NULL);
+               /* load_ical_object(msgnum, 0, ICAL_VEVENT_COMPONENT, save_individual_event, NULL); */
+               load_ical_object(msgnum, 0, (-1), save_individual_event, NULL);
        }
        else {
                save_individual_event(NULL, 0L, "", 0, NULL);