Show More
@@ -73,7 +73,7 b' You can set patchbomb to always ask for ' | |||||
73 | ''' |
|
73 | ''' | |
74 | from __future__ import absolute_import |
|
74 | from __future__ import absolute_import | |
75 |
|
75 | |||
76 |
import email as email |
|
76 | import email.encoders as emailencoders | |
77 | import email.generator as emailgen |
|
77 | import email.generator as emailgen | |
78 | import email.mime.base as emimebase |
|
78 | import email.mime.base as emimebase | |
79 | import email.mime.multipart as emimemultipart |
|
79 | import email.mime.multipart as emimemultipart | |
@@ -380,7 +380,7 b' def _getbundlemsgs(repo, sender, bundle,' | |||||
380 | bundlename = '%s.hg' % opts.get(r'bundlename', 'bundle') |
|
380 | bundlename = '%s.hg' % opts.get(r'bundlename', 'bundle') | |
381 | datapart.add_header('Content-Disposition', 'attachment', |
|
381 | datapart.add_header('Content-Disposition', 'attachment', | |
382 | filename=bundlename) |
|
382 | filename=bundlename) | |
383 |
email |
|
383 | emailencoders.encode_base64(datapart) | |
384 | msg.attach(datapart) |
|
384 | msg.attach(datapart) | |
385 | msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get(r'test')) |
|
385 | msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get(r'test')) | |
386 | return [(msg, subj, None)] |
|
386 | return [(msg, subj, None)] |
General Comments 0
You need to be logged in to leave comments.
Login now