- char buf[SIZ];
- char ename[SIZ];
- char etype[SIZ];
- int i;
- int which;
-
- enum {
- ic_localhost,
- ic_directory,
- ic_gwdom,
- ic_smarthost,
- ic_rbl,
- ic_spamass,
- ic_max
- };
- char *ic_spec[ic_max];
- char *ic_misc;
- char *ic_keyword[ic_max];
- char *ic_boxtitle[ic_max];
- char *ic_desc[ic_max];
-
- ic_keyword[0] = _("localhost");
- ic_keyword[1] = _("directory");
- ic_keyword[2] = _("gatewaydomain");
- ic_keyword[3] = _("smarthost");
- ic_keyword[4] = _("rbl");
- ic_keyword[5] = _("spamassassin");
-
- ic_boxtitle[0] = _("Local host aliases");
- ic_boxtitle[1] = _("Directory domains");
- ic_boxtitle[2] = _("Gateway domains");
- ic_boxtitle[3] = _("Smart hosts");
- ic_boxtitle[4] = _("RBL hosts");
- ic_boxtitle[5] = _("SpamAssassin hosts");
-
- ic_desc[0] = _("(domains for which this host receives mail)");
- ic_desc[1] = _("(domains mapped with the Global Address Book)");
- ic_desc[2] = _("(domains whose subdomains match Citadel hosts)");
- ic_desc[3] = _("(if present, forward all outbound mail to one of these hosts)");
- ic_desc[4] = _("(hosts running a Realtime Blackhole List)");
- ic_desc[5] = _("(hosts running the SpamAssassin service)");
-
- for (i=0; i<ic_max; ++i) {
- ic_spec[i] = strdup("");
+ wcsession *WCC = WC;
+ StrBuf *Buf, *CfgToken, *Value;
+ void *vHash;
+ HashList *Hash;
+ char nnn[64];
+ int i, len, nUsed;
+
+ WCC->InetCfg = NewHash(1, NULL);
+
+ for (i = 0; i < (sizeof(CfgNames) / sizeof(ConstStr)); i++) {
+ Hash = NewHash(1, NULL);
+ Put(WCC->InetCfg, CKEY(CfgNames[i]), Hash, HDeleteHash);