Bug #11128
closedIMAP parsing issue wih body_ext_mpart
Description
ResponseParser raises an error given a valid (RFC 3501) "body_ext_mpart" of the format "body-fld-param SP body-fld-dsp".
sample response:
"* 4 FETCH (BODY ((("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 257 9 NIL NIL NIL NIL)("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 655 9 NIL NIL NIL NIL) "alternative" ("boundary" "001a1137a5047848dd05157ddaa1") NIL)("application" "pdf" ("name" "test.xml" "x-apple-part-url" "9D00D9A2-98AB-4EFB-85BA-FB255F8BF3D7") NIL NIL "base64" 4383638 NIL ("attachment" ("filename" "test.xml")) NIL NIL) "mixed" ("boundary" "001a1137a5047848e405157ddaa3") NIL))\r\n"
Updated by hsbt (Hiroshi SHIBATA) about 8 years ago
- Assignee changed from morsela (Mor Sela) to shugo (Shugo Maeda)
patch is here https://github.com/ruby/ruby/pull/895
Updated by hsbt (Hiroshi SHIBATA) about 8 years ago
- Status changed from Open to Assigned
Updated by shugo (Shugo Maeda) about 8 years ago
- Status changed from Assigned to Closed
Applied in changeset r50444.
- lib/net/imap.rb (body_ext_mpart): should work even if body-fld-dsp
is omitted. [ruby-core:69093] [Bug #11128]
Updated by shugo (Shugo Maeda) about 8 years ago
- Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED
Updated by usa (Usaku NAKAMURA) about 8 years ago
- Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED
ruby_2_1 r50583 merged revision(s) 50444.
Updated by nagachika (Tomoyuki Chikanaga) about 8 years ago
- Backport changed from 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE
Backported into ruby_2_2
at r50629.