incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JC de Villa <jc.devi...@gmail.com>
Subject Re: Uploading attachments using Multipart/related
Date Wed, 26 Mar 2014 16:27:59 GMT
On Wed, Mar 26, 2014 at 11:24 PM, Jens Alfke <jens@couchbase.com> wrote:

>
> On Mar 26, 2014, at 3:07 AM, JC de Villa <jc.devilla@gmail.com> wrote:
>
> > We were initially planning on using pythons email.mime module to build
> the
> > request, but the ability to change the line separator is available only
> on
> > python >= 3.2.
>
> Really? The line separator in a multipart document MUST be a CRLF. That's
> hardwired into the specification*.

--Jens
>
> * http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html


Yeah. I saw that too. The gnarly details of the bug is in
http://bugs.python.org/issue1349106

It was around since 2005 and the fix was committed in 2010, which landed it
in 3.2.

And of course, nothing ships with python 3 by default...

Fun, fun, fun.


-- 
JC de Villa

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message