summaryrefslogtreecommitdiff
path: root/cgi/admin
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/admin')
-rwxr-xr-xcgi/admin17
1 files changed, 16 insertions, 1 deletions
diff --git a/cgi/admin b/cgi/admin
index bce6dcc8e..db0a9ad58 100755
--- a/cgi/admin
+++ b/cgi/admin
@@ -2,7 +2,7 @@
"""Produce the list-administration web page on stdout.
-We need the environment var PATH_INFO to name the list."""
+To run stand-alone for debugging, set env var PATH_INFO to name of list."""
import sys, os, cgi, string, crypt, types
#f = open('/tmp/quick', 'a+')
@@ -91,6 +91,21 @@ def main():
'off. They will receive mail until '
'you fix this problem.'))
+ if len(cgi_data.keys()):
+ if (cgi_data.has_key('bounce_matching_headers')):
+ try:
+ pairs = list.parse_matching_header_opt()
+ except mm_err.MMBadConfigError, line:
+ doc.AddItem('<hr>')
+ m = ('Warning: bad matching-header line'
+ '(does it have the colon?)<ul> %s </ul>'
+ % line)
+ doc.AddItem(
+ htmlformat.Header(3,
+ htmlformat.Italic(
+ htmlformat.FontAttr(
+ m, color="ff5060"))))
+
FormatConfiguration(doc, list)
print doc.Format()