summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2018-07-01 15:43:16 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2018-08-02 09:39:46 +0100
commit834a658dfbe25707eebed34d5f5fdd10e1fddd60 (patch)
treed138031063ba2e7d1ca6b5048d36738f7790a137 /alot/helper.py
parent2c4a2ceec84991b73a9903a3638aa47ca1dc5d2b (diff)
remove workaround for python issue
that was solved upstream: https://bugs.python.org/issue14983
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 46dbb782..b7b7d25d 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -607,19 +607,6 @@ def email_as_string(mail):
g = Generator(fp, mangle_from_=False, maxheaderlen=78)
g.flatten(mail)
as_string = RFC3156_canonicalize(fp.getvalue())
-
- if isinstance(mail, MIMEMultipart):
- # Get the boundary for later
- boundary = mail.get_boundary()
-
- # Workaround for http://bugs.python.org/issue14983:
- # Insert a newline before the outer mail boundary so that other mail
- # clients can verify the signature when sending an email which contains
- # attachments.
- as_string = re.sub(r'--(\r\n)--' + boundary,
- r'--\g<1>\g<1>--' + boundary,
- as_string, flags=re.MULTILINE)
-
return as_string