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

Issue 4588041: code review 4588041: mail: use strconv.QuoteToASCII for formatting addresses. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by dsymonds
Modified:
13 years, 11 months ago
Reviewers:
CC:
r, rsc, golang-dev
Visibility:
Public.

Description

mail: format addresseses correctly. Also remove an obsolete TODO while I'm here.

Patch Set 1 #

Patch Set 2 : diff -r 997e823b0528 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 997e823b0528 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 4 : diff -r 997e823b0528 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 5 : diff -r 997e823b0528 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 6 : diff -r 997e823b0528 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 7 : diff -r 997e823b0528 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 997e823b0528 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 58515a4de582 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -5 lines) Patch
M src/pkg/mail/message.go View 1 2 3 4 5 6 7 5 chunks +55 lines, -5 lines 0 comments Download
M src/pkg/mail/message_test.go View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 16
dsymonds
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 11 months ago (2011-06-07 12:28:51 UTC) #1
r
http://codereview.appspot.com/4588041/diff/4001/src/pkg/mail/message.go File src/pkg/mail/message.go (right): http://codereview.appspot.com/4588041/diff/4001/src/pkg/mail/message.go#newcode142 src/pkg/mail/message.go:142: return "\"" + strconv.QuoteToASCII(a.Name) + "\" " + s ...
13 years, 11 months ago (2011-06-07 12:30:59 UTC) #2
rsc
This is almost certainly not what you want.
13 years, 11 months ago (2011-06-07 19:57:13 UTC) #3
rsc
RFC 2047 might be what you're looking for.
13 years, 11 months ago (2011-06-07 19:58:55 UTC) #4
dsymonds
This is ready for another look. It tries to format the address minimally (quoted-string if ...
13 years, 11 months ago (2011-06-08 01:49:36 UTC) #5
rsc
http://codereview.appspot.com/4588041/diff/8002/src/pkg/mail/message.go File src/pkg/mail/message.go (right): http://codereview.appspot.com/4588041/diff/8002/src/pkg/mail/message.go#newcode137 src/pkg/mail/message.go:137: // String formats the address as a valid RFC ...
13 years, 11 months ago (2011-06-08 02:08:29 UTC) #6
dsymonds
http://codereview.appspot.com/4588041/diff/8002/src/pkg/mail/message.go File src/pkg/mail/message.go (right): http://codereview.appspot.com/4588041/diff/8002/src/pkg/mail/message.go#newcode137 src/pkg/mail/message.go:137: // String formats the address as a valid RFC ...
13 years, 11 months ago (2011-06-08 02:48:15 UTC) #7
rsc
> I'm happy to rename this if that's the consensus, but I'd be wary of ...
13 years, 11 months ago (2011-06-08 03:00:32 UTC) #8
rsc
http://codereview.appspot.com/4588041/diff/16001/src/pkg/mail/message.go File src/pkg/mail/message.go (right): http://codereview.appspot.com/4588041/diff/16001/src/pkg/mail/message.go#newcode147 src/pkg/mail/message.go:147: for _, c := range a.Name { All these ...
13 years, 11 months ago (2011-06-08 03:02:59 UTC) #9
dsymonds
http://codereview.appspot.com/4588041/diff/16001/src/pkg/mail/message.go File src/pkg/mail/message.go (right): http://codereview.appspot.com/4588041/diff/16001/src/pkg/mail/message.go#newcode147 src/pkg/mail/message.go:147: for _, c := range a.Name { On 2011/06/08 ...
13 years, 11 months ago (2011-06-08 03:12:49 UTC) #10
rsc
LGTM http://codereview.appspot.com/4588041/diff/17005/src/pkg/mail/message.go File src/pkg/mail/message.go (right): http://codereview.appspot.com/4588041/diff/17005/src/pkg/mail/message.go#newcode160 src/pkg/mail/message.go:160: return "\"" + b.String() + "\" " + ...
13 years, 11 months ago (2011-06-08 03:15:13 UTC) #11
r
oh - i see - you didn't see my comment because it was stuck in ...
13 years, 11 months ago (2011-06-08 03:19:48 UTC) #12
dsymonds
http://codereview.appspot.com/4588041/diff/17005/src/pkg/mail/message.go File src/pkg/mail/message.go (right): http://codereview.appspot.com/4588041/diff/17005/src/pkg/mail/message.go#newcode160 src/pkg/mail/message.go:160: return "\"" + b.String() + "\" " + s ...
13 years, 11 months ago (2011-06-08 03:20:43 UTC) #13
dsymonds
http://codereview.appspot.com/4588041/diff/8002/src/pkg/mail/message.go File src/pkg/mail/message.go (right): http://codereview.appspot.com/4588041/diff/8002/src/pkg/mail/message.go#newcode437 src/pkg/mail/message.go:437: return '!' <= c && c <= '~' && ...
13 years, 11 months ago (2011-06-08 03:26:35 UTC) #14
r
LGTM
13 years, 11 months ago (2011-06-08 03:31:19 UTC) #15
dsymonds
13 years, 11 months ago (2011-06-08 03:32:59 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=1122ce9d53f0 ***

mail: format addresseses correctly.

Also remove an obsolete TODO while I'm here.

R=r, rsc
CC=golang-dev
http://codereview.appspot.com/4588041
Sign in to reply to this message.

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