gettimeofday(&tv, NULL);
seed = tv.tv_usec;
}
+ srand(seed);
srandom(seed);
CtdlLogPrintf(CTDL_INFO, "Initializing ipgm secret\n");
cprintf("1\n"); /* yes, Sieve mail filtering is supported */
cprintf("%d\n", config.c_enable_fulltext);
cprintf("%s\n", svn_revision());
+
+ if (config.c_auth_mode == AUTHMODE_NATIVE) {
+ cprintf("1\n"); /* OpenID is enabled when using native auth */
+ }
+ else {
+ cprintf("0\n"); /* OpenID is disabled when using non-native auth */
+ }
cprintf("000\n");
}
}
cprintf("%d %s\n", SEND_LISTING, targ);
- while (client_getln(buf, sizeof buf), strcmp(buf, "000")) {
+ while (client_getln(buf, sizeof buf) >=0 && strcmp(buf, "000")) {
fprintf(mfp, "%s\n", buf);
}