2007-01-25 [colin] 2.7.1cvs59
[claws.git] / src / matcher.c
index 344f49e9d371a9c9268fa76c773ffbe1f80a25be..0bab1b08bd150a9ea35e4b955e6fb4eb1e5f595a 100644 (file)
@@ -1805,9 +1805,11 @@ static void matcher_add_rulenames(const gchar *rcpath)
 
        while (fgets (buf, sizeof(buf), src) != NULL) {
                if (strlen(buf) > 2 && buf[0] != '['
-               && strncmp(buf, "rulename \"", 10)) {
-                       fwrite("rulename \"\" ",
-                               strlen("rulename \"\" "), 1, dst);
+               && strncmp(buf, "rulename \"", 10)
+               && strncmp(buf, "enabled rulename \"", 18)
+               && strncmp(buf, "disabled rulename \"", 18)) {
+                       fwrite("enabled rulename \"\" ",
+                               strlen("enabled rulename \"\" "), 1, dst);
                }
                fwrite(buf, strlen(buf), 1, dst);
        }