From 8a5071974ca80b0fc1432ecac3145e8f8ba5cb22 Mon Sep 17 00:00:00 2001 From: klm Date: Sun, 8 Mar 1998 05:18:02 +0000 Subject: Hint about setting for PATH_INFO for debugging in module docstring. Validate bounce_matching_headers setting, issuing diagnostic if found wanting. --- cgi/admin | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'cgi/admin') 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('
') + m = ('Warning: bad matching-header line' + '(does it have the colon?)' + % line) + doc.AddItem( + htmlformat.Header(3, + htmlformat.Italic( + htmlformat.FontAttr( + m, color="ff5060")))) + FormatConfiguration(doc, list) print doc.Format() -- cgit v1.2.3-70-g09d2