Commit 812b2b64 authored by David Symonds's avatar David Symonds

mail: cosmetic fixes.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/4602062
parent 1a4681ed
...@@ -59,7 +59,7 @@ func ReadMessage(r io.Reader) (msg *Message, err os.Error) { ...@@ -59,7 +59,7 @@ func ReadMessage(r io.Reader) (msg *Message, err os.Error) {
return &Message{ return &Message{
Header: Header(hdr), Header: Header(hdr),
Body: tp.R, Body: tp.R,
},nil }, nil
} }
// Layouts suitable for passing to time.Parse. // Layouts suitable for passing to time.Parse.
...@@ -228,7 +228,7 @@ func (p *addrParser) parseAddress() (addr *Address, err os.Error) { ...@@ -228,7 +228,7 @@ func (p *addrParser) parseAddress() (addr *Address, err os.Error) {
if err == nil { if err == nil {
return &Address{ return &Address{
Address: spec, Address: spec,
},err }, err
} }
debug.Printf("parseAddress: not an addr-spec: %v", err) debug.Printf("parseAddress: not an addr-spec: %v", err)
debug.Printf("parseAddress: state is now %q", *p) debug.Printf("parseAddress: state is now %q", *p)
...@@ -260,7 +260,7 @@ func (p *addrParser) parseAddress() (addr *Address, err os.Error) { ...@@ -260,7 +260,7 @@ func (p *addrParser) parseAddress() (addr *Address, err os.Error) {
return &Address{ return &Address{
Name: displayName, Name: displayName,
Address: spec, Address: spec,
},nil }, nil
} }
// consumeAddrSpec parses a single RFC 5322 addr-spec at the start of p. // consumeAddrSpec parses a single RFC 5322 addr-spec at the start of p.
......
...@@ -229,7 +229,6 @@ func TestAddressParsing(t *testing.T) { ...@@ -229,7 +229,6 @@ func TestAddressParsing(t *testing.T) {
}, },
// Custom example of RFC 2047 "B"-encoded UTF-8 address. // Custom example of RFC 2047 "B"-encoded UTF-8 address.
{ {
// XXX: a different example
`=?UTF-8?B?SsO2cmc=?= <joerg@example.com>`, `=?UTF-8?B?SsO2cmc=?= <joerg@example.com>`,
[]*Address{ []*Address{
&Address{ &Address{
...@@ -246,7 +245,7 @@ func TestAddressParsing(t *testing.T) { ...@@ -246,7 +245,7 @@ func TestAddressParsing(t *testing.T) {
continue continue
} }
if !reflect.DeepEqual(addrs, test.exp) { if !reflect.DeepEqual(addrs, test.exp) {
t.Errorf("Parse of %q: got %+v, want %+v", test.addrsStr, *addrs[0], *test.exp[0]) t.Errorf("Parse of %q: got %+v, want %+v", test.addrsStr, addrs, test.exp)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment