cvs: /php4/ext/icap php3_icap.c

From: Date: Wed, 11 Aug 1999 19:56:19 +0000
Subject: cvs: /php4/ext/icap php3_icap.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-3347@lists.php.net to get a copy of this message
musone Wed Aug 11 15:56:19 1999 EDT Modified files: /php4/ext/icap php3_icap.c Log: whoops, forgot to actually return the alarms :^) Index: php4/ext/icap/php3_icap.c diff -u php4/ext/icap/php3_icap.c:1.3 php4/ext/icap/php3_icap.c:1.4 --- php4/ext/icap/php3_icap.c:1.3 Mon Aug 9 18:02:42 1999 +++ php4/ext/icap/php3_icap.c Wed Aug 11 15:56:18 1999 @@ -511,6 +511,12 @@ caltime_t mytime; int ind, ind_type; pils *icap_le_struct; + int icap_folders=0; + unsigned int msgno; + pils *icap_le_struct; + cal_list_t *my_cal_list; + caldate_t begincal,endcal; + int myargc=ARG_COUNT(ht); if (myargc != 3 || getParameters(ht,myargc,&streamind,&date,&time) == FAILURE) { WRONG_PARAM_COUNT; @@ -548,16 +554,18 @@ convert_to_long(pvalue); mytime.minute=pvalue->value.lval; } + + cal_search_alarming(icap_le_struct->icap_stream,&mydate,&mytime); + my_cal_list=g_cal_list; + while(my_cal_list != NULL) + { + add_next_index_long(return_value,my_cal_list->uid); + my_cal_list=my_cal_list->next; + free(g_cal_list); + g_cal_list=my_cal_list; + } - if(cal_search_alarming(icap_le_struct->icap_stream,&mydate,&mytime)) - { - RETURN_TRUE; - } - else - { - RETURN_FALSE; - } } /* Interfaces to C-client */ @@ -772,6 +780,11 @@ convert_to_string(pvalue); myevent.alarm_last.mday=pvalue->value.lval; } + if(_php3_hash_find(storeobject->value.ht,"class",sizeof("class"),(void **) &pvalue)== SUCCESS){ + convert_to_long(pvalue); + myevent.ical_class=pvalue->value.lval; + } + cal_append(icap_le_struct->icap_stream,"INBOX",&myevent);

« previous php.version4 (#3347) next »