* The code which loads expire policies had been incompletely ported to strbuf, causin...
authorArt Cancro <ajc@citadel.org>
Sat, 31 Jan 2009 05:09:04 +0000 (05:09 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 31 Jan 2009 05:09:04 +0000 (05:09 +0000)
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);
 }