return &Message{
Header: Header(hdr),
Body: tp.R,
- },nil
+ }, nil
}
// Layouts suitable for passing to time.Parse.
if err == nil {
return &Address{
Address: spec,
- },err
+ }, err
}
debug.Printf("parseAddress: not an addr-spec: %v", err)
debug.Printf("parseAddress: state is now %q", *p)
return &Address{
Name: displayName,
Address: spec,
- },nil
+ }, nil
}
// consumeAddrSpec parses a single RFC 5322 addr-spec at the start of p.
},
// Custom example of RFC 2047 "B"-encoded UTF-8 address.
{
- // XXX: a different example
`=?UTF-8?B?SsO2cmc=?= <joerg@example.com>`,
[]*Address{
&Address{
continue
}
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)
}
}
}