Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54782
| References | <14063249-6159-48ff-bfe2-8e8d6e3cd7a4@googlegroups.com> <mailman.335.1380168701.18130.python-list@python.org> <870d6a97-613d-401f-ad03-0bbd3b088538@googlegroups.com> |
|---|---|
| Date | 2013-09-26 14:32 +1000 |
| Subject | Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.336.1380170351.18130.python-list@python.org> (permalink) |
On Thu, Sep 26, 2013 at 2:23 PM, Nils Bunger <nilsbunger@gmail.com> wrote: > Yes, it's email.mime.MIMEApplication. I've pasted a snippet with the imports below. > > I'm trying to use this to build a multi-part MIME message, with this as one part. > > I really can't figure out any way to attach a binary part like this to a multi-part MIME message without the encoding issue... any help would be greatly appreciate! I partly responded just to ping your thread, as I'm not particularly familiar with the email.mime module. But a glance at the docs suggests that MIMEApplication is a "subclass of MIMENonMultipart", so might it be a problem to use that for multipart?? It's designed to handle text, so you may want to use an encoder (like the default base64 one) rather than trying to push binary data through it. Random ideas, hopefully someone who actually knows the module can respond. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 nilsbunger@gmail.com - 2013-09-25 09:38 -0700
Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 Chris Angelico <rosuav@gmail.com> - 2013-09-26 14:11 +1000
Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 Nils Bunger <nilsbunger@gmail.com> - 2013-09-25 21:23 -0700
Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 Chris Angelico <rosuav@gmail.com> - 2013-09-26 14:32 +1000
Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 Neil Cerutti <neilc@norwich.edu> - 2013-09-26 13:41 +0000
Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 Nils Bunger <nilsbunger@gmail.com> - 2013-09-26 08:56 -0700
Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 Piet van Oostrum <piet@vanoostrum.org> - 2013-09-26 14:44 -0400
Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 Nils Bunger <nilsbunger@gmail.com> - 2013-09-26 09:35 -0700
csiph-web