]> code.citadel.org Git - citadel.git/blobdiff - citadel/citserver.c
WebCit now detects whether the Citadel server has Sieve support
[citadel.git] / citadel / citserver.c
index fcce7d23912dda4a3d803c1f1a4eaa47354f28a8..d09599ad363dc4c1d2d4b8b1b2edccb0cff607e3 100644 (file)
@@ -301,10 +301,18 @@ void cmd_info(void) {
        }
 
        cprintf("%s\n", config.c_default_cal_zone);
+
        /* Output load averages */
        cprintf("%f\n", CtdlThreadLoadAvg);
        cprintf("%f\n", CtdlThreadWorkerAvg);
        cprintf("%d\n", CtdlThreadGetCount());
+
+       /* Does this server support Sieve mail filtering? */
+#ifdef HAVE_LIBSIEVE
+       cprintf("1\n");         /* yes */
+#else
+       cprintf("0\n");         /* no */
+#endif
        
        cprintf("000\n");
 }