Package: mailman
Version: 2.1.5-9
Severity: normal

Tried altering the templates for article.html and really screwed up the 
template file, but got no error/warning for mailman. Debugging the code
to HyperArch.py, I see it just pass on a screwed up template.

        except (TypeError, ValueError):
             pass

Add logging so at least the user knows their template is messed up.

Patch included.

--- HyperArch.py        2003-12-26 14:41:30.000000000 -0600
+++ HyperArch.py-bob    2005-11-23 03:19:13.000000000 -0600
@@ -217,8 +217,9 @@
                                     Utils.GetCharSet(lang),
                                     'replace')
                 text = sdict.interpolate(utemplate)
-        except (TypeError, ValueError):
+        except (TypeError, ValueError), e:
             # The template is really screwed up
+            syslog('error', 'The template is really screwed up: %s\n',
e)
             pass
     # Make sure the text is in the given character set, or html-ify any
     # bogus
     # characters.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.9-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages mailman depends on:
ii  apache [httpd]                1.3.34-1   versatile, high-performance HTTP s
ii  apache2-mpm-prefork [httpd]   2.0.54-5   traditional model for Apache2
ii  cron                          3.0pl1-92  management of regular background p
ii  debconf                       1.4.59     Debian configuration management sy
ii  exim4-daemon-heavy [mail-tran 4.52-1     exim MTA (v4) daemon with extended
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  logrotate                     3.7.1-2    Log rotation utility
ii  pwgen                         2.04-1     Automatic Password generation
ii  python                        2.3.5-3    An interactive high-level object-o
ii  ucf                           2.003      Update Configuration File: preserv

Versions of packages mailman recommends:
ii  base-passwd                   3.5.10     Debian base system master password

-- debconf information:
* mailman/queue_files_present:
* mailman/default_server_language: en
* mailman/gate_news: false
* mailman/site_languages: en
* mailman/used_languages: en
* mailman/create_site_list:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to