From 986f920a8095112450371b3ae0e0f6444f6667ef Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 8 Nov 2006 03:57:41 +0000 Subject: [PATCH 1/1] Started building the easy rules editor --- webcit/ical_dezonify.c | 14 +++--- webcit/sieve.c | 99 ++++++++++++++++++++++++++++++++++++---- webcit/static/webcit.css | 1 + webcit/webcit.h | 1 + 4 files changed, 100 insertions(+), 15 deletions(-) diff --git a/webcit/ical_dezonify.c b/webcit/ical_dezonify.c index c352edbc4..76c84b794 100644 --- a/webcit/ical_dezonify.c +++ b/webcit/ical_dezonify.c @@ -92,17 +92,17 @@ void ical_dezonify_backend(icalcomponent *cal, return; } - lprintf(9, " * Was: %s\n", icaltime_as_ical_string(TheTime)); + /* lprintf(9, " * Was: %s\n", icaltime_as_ical_string(TheTime)); */ if (TheTime.is_utc) { - lprintf(9, " * This property is ALREADY UTC.\n"); + /* lprintf(9, " * This property is ALREADY UTC.\n"); */ } else { /* Do the conversion. */ if (t != NULL) { - lprintf(9, " * Timezone prop found. Converting to UTC.\n"); + /* lprintf(9, " * Timezone prop found. Converting to UTC.\n"); */ } else { - lprintf(9, " * Converting default timezone to UTC.\n"); + /* lprintf(9, " * Converting default timezone to UTC.\n"); */ } if (t == NULL) { @@ -117,7 +117,7 @@ void ical_dezonify_backend(icalcomponent *cal, } icalproperty_remove_parameter_by_kind(prop, ICAL_TZID_PARAMETER); - lprintf(9, " * Now: %s\n", icaltime_as_ical_string(TheTime)); + /* lprintf(9, " * Now: %s\n", icaltime_as_ical_string(TheTime)); */ /* Now add the converted property back in. */ if (icalproperty_isa(prop) == ICAL_DTSTART_PROPERTY) { @@ -185,7 +185,7 @@ void ical_dezonify_recur(icalcomponent *cal, icalcomponent *rcal) { void ical_dezonify(icalcomponent *cal) { icalcomponent *vt = NULL; - lprintf(9, "ical_dezonify() started\n"); + /* lprintf(9, "ical_dezonify() started\n"); */ /* Convert all times to UTC */ ical_dezonify_recur(cal, cal); @@ -197,7 +197,7 @@ void ical_dezonify(icalcomponent *cal) { icalcomponent_free(vt); } - lprintf(9, "ical_dezonify() completed\n"); + /* lprintf(9, "ical_dezonify() completed\n"); */ } diff --git a/webcit/sieve.c b/webcit/sieve.c index 299cdbd60..56dc27a0c 100644 --- a/webcit/sieve.c +++ b/webcit/sieve.c @@ -9,6 +9,7 @@ #include "webcit.h" #define MAX_SCRIPTS 100 +#define MAX_RULES 8 /** * \brief view/edit sieve config @@ -89,14 +90,9 @@ void display_sieve(void) wprintf(_("Leave it in my inbox without filtering")); wprintf("\n"); - /* - * FIXME uncomment this when we write the rules editor - * wprintf("\n"); - * - */ wprintf("