mhale / smtpd

An SMTP server package written in Go, in the style of the built-in HTTP server.
The Unlicense
404 stars 92 forks source link

Too many recipients #14

Closed xeoncross closed 5 years ago

xeoncross commented 5 years ago

I don't think this comparison check is correct. I'm sure this was supposed to be len(to) > 100 with a different comment:

https://github.com/mhale/smtpd/blob/3c4c908952b8fa9be0ffab850bcad1165564f846/smtpd.go#L326

https://tools.ietf.org/html/rfc5321#section-4.5.3.1.8

xeoncross commented 5 years ago

I'm getting tired and read the code wrong. Recipients are added one-at-a-time up to 100.

https://tools.ietf.org/html/rfc5321#section-4.5.3.1.10