[Pkg-mailman-hackers] Pkg-mailman commit - rev 224 - in
trunk/debian: . patches
Lionel Elie Mamane
lmamane-guest at costa.debian.org
Sun Nov 13 17:18:49 UTC 2005
Author: lmamane-guest
Date: 2005-11-13 17:18:49 +0000 (Sun, 13 Nov 2005)
New Revision: 224
Added:
trunk/debian/patches/73_list-id_strict_rfc.dpatch
Modified:
trunk/debian/changelog
Log:
Ensure list-id is always in brackets in the header
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2005-11-13 16:57:09 UTC (rev 223)
+++ trunk/debian/changelog 2005-11-13 17:18:49 UTC (rev 224)
@@ -6,8 +6,9 @@
string (closes: #327732)
* Don't die on overflow in date handling (closes: #326024)
* Enable error handling in HyperArch (closes: #310451)
+ * Ensure list-id is always in brackets in headers
- -- Lionel Elie Mamane <lmamane at debian.org> Sun, 13 Nov 2005 17:56:25 +0100
+ -- Lionel Elie Mamane <lmamane at debian.org> Sun, 13 Nov 2005 18:17:45 +0100
mailman (2.1.5-9) unstable; urgency=medium
Added: trunk/debian/patches/73_list-id_strict_rfc.dpatch
===================================================================
--- trunk/debian/patches/73_list-id_strict_rfc.dpatch 2005-11-13 16:57:09 UTC (rev 223)
+++ trunk/debian/patches/73_list-id_strict_rfc.dpatch 2005-11-13 17:18:49 UTC (rev 224)
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 73_list-id_strict_rfc.dpatch by <lionel at mamane.lu>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Make sure the List-Id header strictly conforms to RFC 2919:
+## DP: always put the list-id between brackets.
+
+ at DPATCH@
+diff -urNad mailman-2.1.5~/Mailman/Handlers/CookHeaders.py mailman-2.1.5/Mailman/Handlers/CookHeaders.py
+--- mailman-2.1.5~/Mailman/Handlers/CookHeaders.py 2003-12-18 15:58:22.000000000 +0100
++++ mailman-2.1.5/Mailman/Handlers/CookHeaders.py 2005-11-13 18:14:47.546324750 +0100
+@@ -172,7 +172,10 @@
+ desc = str(h)
+ else:
+ desc = ''
+- listid_h = formataddr((desc, listid))
++ if (desc == ''):
++ listid_h = '<%s>' % listid
++ else:
++ listid_h = formataddr((desc, listid))
+ # BAW: I think the message object should handle any necessary wrapping.
+ del msg['list-id']
+ msg['List-Id'] = listid_h
Property changes on: trunk/debian/patches/73_list-id_strict_rfc.dpatch
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-mailman-hackers
mailing list