* siteconfig.c: added support for "instant expunge" and "allow spoofing"
authorArt Cancro <ajc@citadel.org>
Wed, 10 Aug 2005 21:55:04 +0000 (21:55 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 10 Aug 2005 21:55:04 +0000 (21:55 +0000)
  global configuration options.

webcit/ChangeLog
webcit/siteconfig.c

index 33a285021e69dadbd7064a3da1a0254b7499b68f..b4fd84b3e4c95d401c7a5d50eb4d1ae9eb0596f1 100644 (file)
@@ -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 <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index f464698b6ce9b94faa845d974aa56234b6664ff9..f5f56b4a18f07a9146000be569eb8e007be78e65 100644 (file)
@@ -615,6 +615,26 @@ void display_siteconfig(void)
                                wprintf("<INPUT TYPE=\"hidden\" NAME=\"c_auto_cull\" VALUE=\"%s\">", buf);
                        }
                        break;
+               case 45:
+                       if (!strcasecmp(whichmenu, "network")) {
+                               wprintf("<TR><TD>Instantly expunge deleted messages in IMAP</TD><TD>");
+                               wprintf("<INPUT TYPE=\"checkbox\" NAME=\"c_instant_expunge\" VALUE=\"yes\" %s>", ((atoi(buf) != 0) ? "CHECKED" : ""));
+                               wprintf("</TD></TR>\n");
+                       }
+                       else {
+                               wprintf("<INPUT TYPE=\"hidden\" NAME=\"c_instant_expunge\" VALUE=\"%s\">", buf);
+                       }
+                       break;
+               case 46:
+                       if (!strcasecmp(whichmenu, "network")) {
+                               wprintf("<TR><TD>Allow unauthenticated SMTP clients to spoof my domains</TD><TD>");
+                               wprintf("<INPUT TYPE=\"checkbox\" NAME=\"c_allow_spoofing\" VALUE=\"yes\" %s>", ((atoi(buf) != 0) ? "CHECKED" : ""));
+                               wprintf("</TD></TR>\n");
+                       }
+                       else {
+                               wprintf("<INPUT TYPE=\"hidden\" NAME=\"c_allow_spoofing\" VALUE=\"%s\">", 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")));