Browse Source

use the correct email.encoders modules when attaching binary files; Closes: #850317

tags/7.1.4
Sandro Tosi 4 years ago
parent
commit
1bcb54b419
2 changed files with 9 additions and 1 deletions
  1. +8
    -0
      debian/changelog
  2. +1
    -1
      reportbug/submit.py

+ 8
- 0
debian/changelog View File

@@ -1,3 +1,11 @@
reportbug (7.1.4) UNRELEASED; urgency=medium

* reportbug/submit.py
- use the correct email.encoders modules when attaching binary files;
Closes: #850317

-- Sandro Tosi <morph@debian.org> Sun, 22 Jan 2017 18:03:02 -0500

reportbug (7.1.3) unstable; urgency=medium

* debian/control


+ 1
- 1
reportbug/submit.py View File

@@ -174,7 +174,7 @@ def mime_attach(body, attachments, charset, body_charset=None):
part = MIMEBase(maintype, subtype)
part.set_payload(fp.read())
fp.close()
email.Encoders.encode_base64(part)
email.encoders.encode_base64(part)
part.add_header('Content-Disposition', 'attachment',
filename=os.path.basename(attachment))
message.attach(part)


Loading…
Cancel
Save