silence compiler warning with variable no longer used
authorArt Cancro <ajc@uncensored.citadel.org>
Thu, 8 Mar 2012 16:20:48 +0000 (11:20 -0500)
committerArt Cancro <ajc@uncensored.citadel.org>
Thu, 8 Mar 2012 16:20:48 +0000 (11:20 -0500)
webcit/sieve.c

index 4ed9fc5064589d3f4945eb2085a1b35a3b5099e9..15412e0f8d5a760e78ed2a6e5f5afd4f05ba0c48 100644 (file)
@@ -16,6 +16,7 @@
 #define MAX_RULES      50
 #define RULES_SCRIPT   "__WebCit_Generated_Script__"
 
+
 /*
  * Helper function for output_sieve_rule() to output strings with quotes escaped
  */
@@ -188,7 +189,6 @@ void output_sieve_rule(char *hfield, char *compare, char *htext, char *sizecomp,
                serv_printf("{");
        }
 
-
        /* Do action */
 
        if (!strcasecmp(action, "keep")) {
@@ -215,26 +215,22 @@ void output_sieve_rule(char *hfield, char *compare, char *htext, char *sizecomp,
                serv_printf("vacation :addresses [%s]\n\"%s\";", my_addresses, automsg);
        }
 
-
        /* Do 'final' action */
 
        if (!strcasecmp(final, "stop")) {
                serv_printf("stop;");
        }
 
-
        /* Close the braces if we're in a conditional loop */
 
        if (strcasecmp(hfield, "all")) {
                serv_printf("}");
        }
 
-
        /* End of rule. */
 }
 
 
-
 /*
  * Translate the fields from the rule editor into something we can save...
  */
@@ -351,7 +347,6 @@ void parse_fields_from_rule_editor(void) {
 }
 
 
-
 /*
  * save sieve config
  */
@@ -359,7 +354,6 @@ void save_sieve(void) {
        int bigaction;
        char script_names[MAX_SCRIPTS][64];
        int num_scripts = 0;
-       int active_script = (-1);       /* this throws a 'set but not used' warning , check this ! */
        int i;
        char this_name[64];
        char buf[256];
@@ -377,9 +371,6 @@ void save_sieve(void) {
        if (buf[0] == '1') while (serv_getln(buf, sizeof(buf)), strcmp(buf, "000")) {
                if (num_scripts < MAX_SCRIPTS) {
                        extract_token(script_names[num_scripts], buf, 0, '|', 64);
-                       if (extract_int(buf, 1) > 0) {
-                               active_script = num_scripts;
-                       }
                        ++num_scripts;
                }
        }
@@ -426,6 +417,7 @@ void save_sieve(void) {
        return;
 }
 
+
 /*
  * create a new script
  * take the web environment script name and create it on the citadel server
@@ -459,8 +451,6 @@ void create_script(void) {
 }
 
 
-
-
 /*
  * delete a script
  */
@@ -473,7 +463,6 @@ void delete_script(void) {
        do_template("sieve_add");
        wDumpContent(1);
 }
-               
 
 
 /*