diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2017-08-22 12:08:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-22 12:08:34 -0700 |
commit | 052bd44cd92d79473717806487cbbe4ca3f34bd2 (patch) | |
tree | 574428e4334275baeaba001d7f9ce6238ef1f640 /alot | |
parent | c53f2064460c0c633aee5386f01dc03716c42ecb (diff) | |
parent | f475b96685686cb1f5597ac063de950f4efb0c85 (diff) |
Merge pull request #1133 from lucc/fix/bug-1132
Fix #1132 by reverting part of fa3dd1b04567.
Diffstat (limited to 'alot')
-rw-r--r-- | alot/helper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py index ce307875..1c569a23 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -10,6 +10,7 @@ from datetime import timedelta from datetime import datetime from collections import deque from io import BytesIO +from cStringIO import StringIO import logging import mimetypes import os @@ -606,7 +607,7 @@ def email_as_string(mail): :param mail: email to convert to string :rtype: str """ - fp = BytesIO() + fp = StringIO() g = Generator(fp, mangle_from_=False, maxheaderlen=78) g.flatten(mail) as_string = RFC3156_canonicalize(fp.getvalue()) |