diff options
| author | klm | 1998-03-08 05:18:02 +0000 |
|---|---|---|
| committer | klm | 1998-03-08 05:18:02 +0000 |
| commit | 8a5071974ca80b0fc1432ecac3145e8f8ba5cb22 (patch) | |
| tree | 7c7d1d55d19e219734300c53c64b70caf2c02a5b | |
| parent | b3d3ac4188478cd0299d67e9f8fcaff1b6fe1e6e (diff) | |
| download | mailman-8a5071974ca80b0fc1432ecac3145e8f8ba5cb22.tar.gz mailman-8a5071974ca80b0fc1432ecac3145e8f8ba5cb22.tar.zst mailman-8a5071974ca80b0fc1432ecac3145e8f8ba5cb22.zip | |
Hint about setting for PATH_INFO for debugging in module docstring.
Validate bounce_matching_headers setting, issuing diagnostic if found
wanting.
| -rwxr-xr-x | cgi/admin | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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() |
