1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 73_list-id_strict_rfc.dpatch by <lionel@mamane.lu>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Make sure the List-Id header strictly conforms to RFC 2919:
6
## DP: always put the list-id between brackets.
9
diff -urNad mailman-2.1.5~/Mailman/Handlers/CookHeaders.py mailman-2.1.5/Mailman/Handlers/CookHeaders.py
10
--- mailman-2.1.5~/Mailman/Handlers/CookHeaders.py 2003-12-18 15:58:22.000000000 +0100
11
+++ mailman-2.1.5/Mailman/Handlers/CookHeaders.py 2005-11-13 18:14:47.546324750 +0100
16
- listid_h = formataddr((desc, listid))
18
+ listid_h = '<%s>' % listid
20
+ listid_h = formataddr((desc, listid))
21
# BAW: I think the message object should handle any necessary wrapping.
23
msg['List-Id'] = listid_h