mhale/smtpd

Wrong operator used?

Closed this issue · 1 comments

tegk commented

What happens if the length is bigger than 100?
Should this not be >= 100?

smtpd/smtpd.go

Line 326 in d7a07f7

if len(to) == 100 {

@tegk It's a loop parsing line by line, it running for every line sent to the server. So therefore every instance of RCPT being sent. If == 100 then it'll stop allowing you to add new ones. It should never get above 100.