Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1199)

Issue 4662059: code review 4662059: mime/multipart: parse LF-delimited messages, not just CRLF (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by bradfitz
Modified:
13 years, 10 months ago
Reviewers:
CC:
golang-dev, adg
Visibility:
Public.

Description

mime/multipart: parse LF-delimited messages, not just CRLF Against the spec, but appear in the wild. Fixes issue 1966

Patch Set 1 #

Patch Set 2 : diff -r 11cc81772e31 https://go.googlecode.com/hg #

Patch Set 3 : diff -r 11cc81772e31 https://go.googlecode.com/hg #

Total comments: 12

Patch Set 4 : diff -r 698796ea5c3e https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 5 : diff -r 698796ea5c3e https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 6 : diff -r 698796ea5c3e https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -21 lines) Patch
M src/pkg/mime/multipart/multipart.go View 1 2 3 4 5 6 chunks +21 lines, -11 lines 0 comments Download
M src/pkg/mime/multipart/multipart_test.go View 1 4 chunks +22 lines, -10 lines 0 comments Download

Messages

Total messages: 10
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 10 months ago (2011-06-27 23:20:06 UTC) #1
adg
Maybe it can be simpler with a little more state. http://codereview.appspot.com/4662059/diff/1003/src/pkg/mime/multipart/multipart.go File src/pkg/mime/multipart/multipart.go (right): http://codereview.appspot.com/4662059/diff/1003/src/pkg/mime/multipart/multipart.go#newcode84 ...
13 years, 10 months ago (2011-06-28 00:37:38 UTC) #2
bradfitz
http://codereview.appspot.com/4662059/diff/1003/src/pkg/mime/multipart/multipart.go File src/pkg/mime/multipart/multipart.go (right): http://codereview.appspot.com/4662059/diff/1003/src/pkg/mime/multipart/multipart.go#newcode84 src/pkg/mime/multipart/multipart.go:84: nlDashBoundary: b[:len(b)-2], On 2011/06/28 00:37:38, adg wrote: > nl: ...
13 years, 10 months ago (2011-06-28 03:35:36 UTC) #3
bradfitz
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-06-28 03:35:37 UTC) #4
adg
Am I missing something? http://codereview.appspot.com/4662059/diff/2004/src/pkg/mime/multipart/multipart.go File src/pkg/mime/multipart/multipart.go (right): http://codereview.appspot.com/4662059/diff/2004/src/pkg/mime/multipart/multipart.go#newcode239 src/pkg/mime/multipart/multipart.go:239: var lf = []byte("\n") why ...
13 years, 10 months ago (2011-06-28 03:48:01 UTC) #5
bradfitz
http://codereview.appspot.com/4662059/diff/2004/src/pkg/mime/multipart/multipart.go File src/pkg/mime/multipart/multipart.go (right): http://codereview.appspot.com/4662059/diff/2004/src/pkg/mime/multipart/multipart.go#newcode239 src/pkg/mime/multipart/multipart.go:239: var lf = []byte("\n") On 2011/06/28 03:48:01, adg wrote: ...
13 years, 10 months ago (2011-06-28 04:51:32 UTC) #6
bradfitz
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-06-28 04:51:40 UTC) #7
adg
LGTM Nice. http://codereview.appspot.com/4662059/diff/5003/src/pkg/mime/multipart/multipart.go File src/pkg/mime/multipart/multipart.go (right): http://codereview.appspot.com/4662059/diff/5003/src/pkg/mime/multipart/multipart.go#newcode27 src/pkg/mime/multipart/multipart.go:27: var lf = []byte("\n") maybe put // ...
13 years, 10 months ago (2011-06-28 04:55:20 UTC) #8
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=6a2f3ca2f736 *** mime/multipart: parse LF-delimited messages, not just CRLF Against the spec, ...
13 years, 10 months ago (2011-06-28 04:59:57 UTC) #9
bradfitz
13 years, 10 months ago (2011-06-28 05:00:24 UTC) #10
Done.

Thanks for helping clean this up.

On Mon, Jun 27, 2011 at 9:55 PM, <adg@golang.org> wrote:

> LGTM
>
> Nice.
>
>
> http://codereview.appspot.com/**4662059/diff/5003/src/pkg/**
>
mime/multipart/multipart.go<http://codereview.appspot.com/4662059/diff/5003/src/pkg/mime/multipart/multipart.go>
>
> File src/pkg/mime/multipart/**multipart.go (right):
>
> http://codereview.appspot.com/**4662059/diff/5003/src/pkg/**
>
mime/multipart/multipart.go#**newcode27<http://codereview.appspot.com/4662059/diff/5003/src/pkg/mime/multipart/multipart.go#newcode27>
> src/pkg/mime/multipart/**multipart.go:27: var lf = []byte("\n")
> maybe put
> // TODO(bradfitz): inline these once the compiler is smarter
>
>
>
http://codereview.appspot.com/**4662059/<http://codereview.appspot.com/4662059/>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b