]> code.citadel.org Git - citadel.git/blobdiff - citadel/control.c
* imap optimizations
[citadel.git] / citadel / control.c
index e497f3dbc650c39b2fb192e3dc9ad3a1b177230c..3cbeff69ab1755a4e2bfef415c1c5653ef03e244 100644 (file)
@@ -399,6 +399,14 @@ void cmd_conf(char *argbuf)
 
                if (strlen(config.c_logpages) > 0)
                        create_room(config.c_logpages, 3, "", 0, 1, 1, VIEW_BBS);
+
+               /* If full text indexing has been disabled, invalidate the
+                * index so it doesn't try to use it later.
+                */
+               if (!config.c_enable_fulltext == 0) {
+                       CitControl.fulltext_wordbreaker = 0;
+                       put_control();
+               }
        }
 
        else if (!strcasecmp(cmd, "GETSYS")) {