From: Art Cancro Date: Wed, 10 Aug 2005 21:55:04 +0000 (+0000) Subject: * siteconfig.c: added support for "instant expunge" and "allow spoofing" X-Git-Tag: v7.86~4737 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4fdfdbbbc9c984d75f6a9e57e6170b87cb1ddb50 * siteconfig.c: added support for "instant expunge" and "allow spoofing" global configuration options. --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 33a285021..b4fd84b3e 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 621.2 2005/08/10 21:55:04 ajc +* siteconfig.c: added support for "instant expunge" and "allow spoofing" + global configuration options. + Revision 621.1 2005/08/09 01:13:29 ajc * Mailbox summary view is now generated using the server's new "message list with headers summary" mode. @@ -2788,3 +2792,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index f464698b6..f5f56b4a1 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -615,6 +615,26 @@ void display_siteconfig(void) wprintf("", buf); } break; + case 45: + if (!strcasecmp(whichmenu, "network")) { + wprintf("Instantly expunge deleted messages in IMAP"); + wprintf("", ((atoi(buf) != 0) ? "CHECKED" : "")); + wprintf("\n"); + } + else { + wprintf("", buf); + } + break; + case 46: + if (!strcasecmp(whichmenu, "network")) { + wprintf("Allow unauthenticated SMTP clients to spoof my domains"); + wprintf("", ((atoi(buf) != 0) ? "CHECKED" : "")); + wprintf("\n"); + } + else { + wprintf("", buf); + } + break; } } @@ -748,6 +768,8 @@ void siteconfig(void) serv_printf("%s", bstr("c_smtps_port")); serv_printf("%s", ((!strcasecmp(bstr("c_enable_fulltext"), "yes") ? "1" : "0"))); serv_printf("%s", ((!strcasecmp(bstr("c_auto_cull"), "yes") ? "1" : "0"))); + serv_printf("%s", ((!strcasecmp(bstr("c_instant_expunge"), "yes") ? "1" : "0"))); + serv_printf("%s", ((!strcasecmp(bstr("c_allow_spoofing"), "yes") ? "1" : "0"))); serv_printf("000"); serv_printf("SPEX site|%d|%d", atoi(bstr("sitepolicy")), atoi(bstr("sitevalue")));