* The code which loads expire policies had been incompletely ported to strbuf, causin...
[citadel.git] / webcit / siteconfig.c
index 709693e59f20535e8b2d502e658c60d307720716..01824a592807332b12d1b8e0dd466f48727644e7 100644 (file)
@@ -175,8 +175,8 @@ void load_siteconfig(void)
        }
 
        serv_puts("GPEX mailboxes");
-       serv_getln(buf, sizeof buf);
-       if (buf[0] == '2') {
+       StrBuf_ServGetln(Buf);
+       if (GetServerStatus(Buf, NULL) == 2) {
                StrBufCutLeft(Buf, 4);
 
                CfgToken = NewStrBuf();
@@ -187,6 +187,7 @@ void load_siteconfig(void)
                StrBufExtract_token(CfgToken, Buf, 1, '|');
                Put(Cfg, HKEY("mboxvalue"), CfgToken, HFreeStrBuf);
        }
+       FreeStrBuf(&Buf);
 }