[Pkg-mailman-hackers] Bug#614340: mailman: expose message-id to templates
Adrian von Bidder
avbidder at fortytwo.ch
Mon Feb 21 07:21:58 UTC 2011
Package: mailman
Version: 1:2.1.13-5
Severity: wishlist
Tags: upstream, patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Please consider this trivial patch, which exposees message-ids to the
templates used for the email archive.
See it in action on lists.debian.ch. (I don't think my modification to
the templates should be in, but having te message-id exposed would mean
I won't have to remember to patch mailman on every update...)
- --- HyperArch.py.orig 2011-01-06 09:19:57.000000000 +0100
+++ HyperArch.py 2011-01-06 09:21:16.000000000 +0100
@@ -468,6 +468,7 @@
d["email_html"] = self.quote(self.email)
d["title"] = self.quote(self.subject)
d["subject_html"] = self.quote(self.subject)
+ d["message_id"] = self.quote(self._message_id)
# TK: These two _url variables are used to compose a response
# from the archive web page. So, ...
d["subject_url"] = url_quote('Re: ' + self.subject)
(AFAICT mailman adds a Message-Id when an incoming email doesn't have
one, so this should never be a problem.)
cheers
- -- vbi
- -- System Information:
Debian Release: 6.0
APT prefers stable
APT policy: (800, 'stable'), (700, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.37-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk1iEpAACgkQKqpm2L3fmXr55ACgm/hgIhNZn0cCXQkpLWtNeq7j
pAkAnihs4qQ3hTN9Nx+e2cn9dNS2z8l9
=KfIE
-----END PGP SIGNATURE-----
More information about the Pkg-mailman-hackers
mailing list