]> Cypherpunks repositories - gostls13.git/commitdiff
net/mail: comment our divergence from RFC 5322.
authorDavid Symonds <dsymonds@golang.org>
Fri, 9 Aug 2013 00:17:57 +0000 (10:17 +1000)
committerDavid Symonds <dsymonds@golang.org>
Fri, 9 Aug 2013 00:17:57 +0000 (10:17 +1000)
R=golang-dev, bradfitz
CC=golang-dev, ryanslade
https://golang.org/cl/12588044

src/pkg/net/mail/message.go

index 7cec302965723ba49aef43414c6179936b94872e..3a4994804a9f7b51698a3d3e013c5663eeb50114 100644 (file)
@@ -342,6 +342,8 @@ func (p *addrParser) consumePhrase() (phrase string, err error) {
                        word, err = p.consumeQuotedString()
                } else {
                        // atom
+                       // We actually parse dot-atom here to be more permissive
+                       // than what RFC 5322 specifies.
                        word, err = p.consumeAtom(true)
                }