Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54782
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'encoding': 0.05; 'subject:Python': 0.06; 'binary': 0.07; 'encoder': 0.09; 'ping': 0.09; 'snippet': 0.09; 'random': 0.14; 'base64': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'imports': 0.16; 'one)': 0.16; 'partly': 0.16; 'respond.': 0.16; 'subject: \n ': 0.16; 'subject:issue': 0.16; 'thread,': 0.16; 'attach': 0.16; 'wrote:': 0.18; 'module': 0.19; 'trying': 0.19; 'thu,': 0.19; 'text,': 0.24; "i've": 0.25; 'push': 0.26; 'header :In-Reply-To:1': 0.27; '(like': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'responded': 0.31; 'sep': 0.31; 'subject:skip:i 10': 0.31; 'figure': 0.32; 'problem': 0.35; 'subject:with': 0.35; "can't": 0.35; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'module.': 0.36; 'subject:data': 0.36; 'handle': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; '26,': 0.68; 'default': 0.69; 'below.': 0.71; 'glance': 0.84; 'subject:skip:M 10': 0.84; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4KheUkMiYgcEQEuitysen/8sL/jNu5ZtXW56RaA1xpU=; b=vmjxAXKxuj0DbEkbJeOI/f+LpfKyUm6tpyzPxXjt/icVNCCwM7CswsQrWNYzX4sbAy i3dR9MidhNQVNNNrJJDP+gLRVMBFLsOh36EQbfU9tx7EvrJRxqRQ3cy5nbs6iWxt/wAj P9sI1gxYx4SLJaHrdYYIO1ZBvtibUrwvaIjsyRw7+ZAV6Ctqs1tm90IYOzKwpovtSqYn p/6T87AaoOrE0z/LzNJW5TtzZIH/AUxpJ2udqYktEmgGecDZ17OgOtS/Rck15J3zdMn0 3fAqGNDKbE2keaf6BhrnT+boLTl5JEAOWzrurfJ7zSwg57Rigv3VlC4e3Yc/Wt+OErvh 5p6Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.58.179.104 with SMTP id df8mr4883600vec.26.1380169941651; Wed, 25 Sep 2013 21:32:21 -0700 (PDT) |
| In-Reply-To | <870d6a97-613d-401f-ad03-0bbd3b088538@googlegroups.com> |
| References | <14063249-6159-48ff-bfe2-8e8d6e3cd7a4@googlegroups.com> <mailman.335.1380168701.18130.python-list@python.org> <870d6a97-613d-401f-ad03-0bbd3b088538@googlegroups.com> |
| Date | Thu, 26 Sep 2013 14:32:21 +1000 |
| Subject | Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2 |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.336.1380170351.18130.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1380170351 news.xs4all.nl 15928 [2001:888:2000:d::a6]:54526 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:54782 |
Show key headers only | View raw
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