diff options
| author | Barry Warsaw | 2009-01-04 19:41:05 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-04 19:41:05 -0500 |
| commit | f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7 (patch) | |
| tree | fc64f36b862ae61965e8d23fd00e56dcac1a5ee3 /mailman/pipeline/cook_headers.py | |
| parent | 706c3853103f53955068cc429c0bd6d1f8fb6dd0 (diff) | |
| download | mailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.tar.gz mailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.tar.zst mailman-f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7.zip | |
Diffstat (limited to 'mailman/pipeline/cook_headers.py')
| -rw-r--r-- | mailman/pipeline/cook_headers.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mailman/pipeline/cook_headers.py b/mailman/pipeline/cook_headers.py index d8d5e3651..88051970e 100644 --- a/mailman/pipeline/cook_headers.py +++ b/mailman/pipeline/cook_headers.py @@ -25,7 +25,6 @@ __all__ = [ import re -from email.charset import Charset from email.errors import HeaderParseError from email.header import Header, decode_header, make_header from email.utils import parseaddr, formataddr, getaddresses @@ -33,7 +32,6 @@ from zope.interface import implements from mailman import Utils from mailman.config import config -from mailman.core.plugins import get_plugins from mailman.i18n import _ from mailman.interfaces.handler import IHandler from mailman.interfaces.mailinglist import Personalization, ReplyToMunging @@ -319,12 +317,12 @@ def ch_oneline(headerstr): # At this point, we should rstrip() every string because some # MUA deliberately add trailing spaces when composing return # message. - d = [(s.rstrip(),c) for (s,c) in d] + d = [(s.rstrip(), c) for (s, c) in d] # Find all charsets in the original header. We use 'utf-8' rather # than using the first charset (in mailman 2.1.x) if multiple # charsets are used. csets = [] - for (s,c) in d: + for (s, c) in d: if c and c not in csets: csets.append(c) if len(csets) == 0: |
