Merge lp:~msapiro/mailman/digest_footer into lp:mailman

Proposed by Mark Sapiro
Status: Merged
Merged at revision: 7171
Proposed branch: lp:~msapiro/mailman/digest_footer
Merge into: lp:mailman
Diff against target: 76 lines (+16/-6)
3 files modified
src/mailman/docs/NEWS.rst (+1/-0)
src/mailman/runners/digest.py (+7/-6)
src/mailman/runners/docs/digester.rst (+8/-0)
To merge this branch: bzr merge lp:~msapiro/mailman/digest_footer
Reviewer Review Type Date Requested Status
Barry Warsaw code Approve
Review via email: mp+101660@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

Thanks Mark!

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/mailman/docs/NEWS.rst'
2--- src/mailman/docs/NEWS.rst 2012-04-07 21:59:30 +0000
3+++ src/mailman/docs/NEWS.rst 2012-04-11 23:02:21 +0000
4@@ -56,6 +56,7 @@
5
6 Bug fixes
7 ---------
8+ * Fixed the RFC 1153 digest footer to be compliant. (LP: #887610)
9 * Fixed a UnicodeError with non-ascii message bodies in the `approved` rule,
10 given by Mark Sapiro. (LP: #949924)
11 * Fixed a typo when returning the configuration file's header match checks.
12
13=== modified file 'src/mailman/runners/digest.py'
14--- src/mailman/runners/digest.py 2012-03-23 17:36:58 +0000
15+++ src/mailman/runners/digest.py 2012-04-11 23:02:21 +0000
16@@ -284,16 +284,17 @@
17 self._mlist.fqdn_listname,
18 self._mlist.digest_footer_uri))
19 footer_text = ''
20- # This is not strictly conformant RFC 1153. The trailer is only
21- # supposed to contain two lines, i.e. the "End of ... Digest" line
22- # and the row of asterisks. If this screws up MUAs, the solution
23- # is to add the footer as the last message in the RFC 1153 digest.
24- # I just hate the way that VM does that and I think it's confusing
25- # to users, so don't do it unless there's a clamor.
26+ # MAS: There is no real place for the digest_footer in an RFC 1153
27+ # compliant digest, so add it as an additional message with
28+ # Subject: Digest Footer
29 print >> self._text, self._separator30
30 print >> self._text
31+ print >> self._text, 'Subject: ' + _('Digest Footer')
32+ print >> self._text
33 print >> self._text, footer_text
34 print >> self._text
35+ print >> self._text, self._separator30
36+ print >> self._text
37 # Add the sign-off.
38 sign_off = _('End of ') + self._digest_id
39 print >> self._text, sign_off
40
41=== modified file 'src/mailman/runners/docs/digester.rst'
42--- src/mailman/runners/docs/digester.rst 2012-03-17 16:54:26 +0000
43+++ src/mailman/runners/docs/digester.rst 2012-04-11 23:02:21 +0000
44@@ -265,12 +265,16 @@
45 <BLANKLINE>
46 ------------------------------
47 <BLANKLINE>
48+ Subject: Digest Footer
49+ <BLANKLINE>
50 _______________________________________________
51 Test mailing list
52 test@example.com
53 http://lists.example.com/listinfo/test@example.com
54 <BLANKLINE>
55 <BLANKLINE>
56+ ------------------------------
57+ <BLANKLINE>
58 End of Test Digest, Vol 1, Issue 1
59 **********************************
60 <BLANKLINE>
61@@ -459,12 +463,16 @@
62 "''",
63 "'------------------------------'",
64 "''",
65+ "'Subject: Pied de page des remises group\\xc3\\xa9es'",
66+ "''",
67 "'_______________________________________________'",
68 "'Test mailing list'",
69 "'test@example.com'",
70 "'http://lists.example.com/listinfo/test@example.com'",
71 "''",
72 "''",
73+ "'------------------------------'",
74+ "''",
75 "'Fin de Groupe Test, Vol 1, Parution 2'",
76 "'*************************************'"]
77