summaryrefslogtreecommitdiff
path: root/src/mailman/pipeline
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-01 15:37:42 -0500
committerBarry Warsaw2012-03-01 15:37:42 -0500
commita8f2a1c6dcc27927d8163e0ca6e50f9986a84385 (patch)
treea0a5fea27513b622a6e3facde430a9f516a72858 /src/mailman/pipeline
parentde572e747fb46f1c942dbe0dc37fb9fd7f8ae01a (diff)
downloadmailman-a8f2a1c6dcc27927d8163e0ca6e50f9986a84385.tar.gz
mailman-a8f2a1c6dcc27927d8163e0ca6e50f9986a84385.tar.zst
mailman-a8f2a1c6dcc27927d8163e0ca6e50f9986a84385.zip
Restore the RFC 2369 headers to accepted list posts.
Diffstat (limited to 'src/mailman/pipeline')
-rw-r--r--src/mailman/pipeline/rfc_2369.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/mailman/pipeline/rfc_2369.py b/src/mailman/pipeline/rfc_2369.py
index aa99b5c14..26bfe094c 100644
--- a/src/mailman/pipeline/rfc_2369.py
+++ b/src/mailman/pipeline/rfc_2369.py
@@ -21,13 +21,16 @@ from __future__ import absolute_import, unicode_literals
__metaclass__ = type
__all__ = [
- 'process',
+ 'RFC2369',
]
from email.utils import formataddr
+from zope.interface import implements
from mailman.config import config
+from mailman.core.i18n import _
+from mailman.interfaces.handler import IHandler
from mailman.pipeline.cook_headers import uheader
CONTINUATION = ',\n\t'
@@ -93,3 +96,17 @@ def process(mlist, msg, msgdata):
if len(h) + 2 + len(v) > 78:
v = CONTINUATION.join(v.split(', '))
msg[h] = v
+
+
+
+class RFC2369:
+ """Add the RFC 2369 List-* headers."""
+
+ implements(IHandler)
+
+ name = 'rfc-2369'
+ description = _('Add the RFC 2369 List-* headers.')
+
+ def process(self, mlist, msg, msgdata):
+ """See `IHandler`."""
+ process(mlist, msg, msgdata)