[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2013-06-28 Thread R. David Murray
R. David Murray added the comment: For the record, encode_quopri was fixed in #14360. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2011-07-05 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-06-04 Thread R. David Murray
R. David Murray added the comment: @garazi111: if you have an example where quopri fails, please open a new issue for it. I suspect you are right that there is a problem there. -- ___ Python tracker _

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-06-04 Thread R. David Murray
R. David Murray added the comment: Yes, but yours was better formatted, so I used it :) Thanks for the patch. Applied in r81685 to py3k, and r81686. -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-06-04 Thread Forest Bond
Forest Bond added the comment: Note that my patch is roughly the same as the original posted by haypo. -- ___ Python tracker ___ ___ P

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-06-04 Thread Forest Bond
Forest Bond added the comment: Attaching patch from reported duplicate issue8896. -- nosy: +forest_atq Added file: http://bugs.python.org/file17551/python-email-encoders-base64-str.patch ___ Python tracker ___

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-05-26 Thread STINNER Victor
STINNER Victor added the comment: I wrote a patch for base64.b64encode() to accept str (str is encoded to utf-8): patch attached to #4768. It should fix this issue, but we can add the tests of email_base64_bytes.patch. -- ___ Python tracker

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-05-10 Thread R. David Murray
Changes by R. David Murray : -- priority: high -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-05-09 Thread garazi111
garazi111 added the comment: Hi, I think the bug is also present in the function encode_quopri which should look like this : def encode_quopri(msg): """Encode the message's payload in quoted-printable. Also, add an appropriate Content-Transfer-Encoding header. """ orig = msg.

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-22 Thread R. David Murray
Changes by R. David Murray : -- assignee: barry -> r.david.murray resolution: -> accepted type: crash -> behavior ___ Python tracker ___ _

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> high stage: -> patch review versions: +Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Stac
Stac added the comment: Hello, This patch has never been commited. I tested today with the 3.1 branch (and checked in the lib code). Is there a better way to attach images in an email ? Thanks in advance for your help, Regards, Stac -- nosy: +stac _

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2009-01-01 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file12525/email_base64_bytes.patch ___ Python tracker ___ __

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2009-01-01 Thread STINNER Victor
STINNER Victor added the comment: > I think the library function base64.b64encode() should return > a string, not bytes. Yes, in the email module, the payload is an unicode string, not a bytes string. We have to be able to concatenate headers (eg. "Content-Type: image/fish\nMIME-Version: 1.

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2009-01-01 Thread James Brotchie
Changes by James Brotchie : -- nosy: +brotchie ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2008-12-29 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> barry nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2008-12-29 Thread David M. Beazley
New submission from David M. Beazley : The email.generator.Generator class does not work correctly message objects created with binary data (MIMEImage, MIMEAudio, MIMEApplication, etc.). For example: >>> from email.mime.image import MIMEImage >>> data = open("IMG.jpg","rb").read() >>> m = MIM