Mercurial > email
comparison mail.c @ 6:f96ca37be746
Fix sending to more than 2 recipients
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 04 Feb 2016 09:23:10 -0500 |
parents | d163044ae493 |
children | 4a0de889bcec |
comparison
equal
deleted
inserted
replaced
5:d163044ae493 | 6:f96ca37be746 |
---|---|
213 if (smtp_read(ctx, sock, buf, pos) != 250) { | 213 if (smtp_read(ctx, sock, buf, pos) != 250) { |
214 close(sock); | 214 close(sock); |
215 uw_set_error_message(ctx, "Mail server doesn't respond to %s RCPT TO with code 250.", kind); | 215 uw_set_error_message(ctx, "Mail server doesn't respond to %s RCPT TO with code 250.", kind); |
216 return 1; | 216 return 1; |
217 } | 217 } |
218 | |
219 s = p+1; | |
218 } | 220 } |
219 | 221 |
220 if (*s) { | 222 if (*s) { |
221 snprintf(out, sizeof(out), "RCPT TO:%s\r\n", s); | 223 snprintf(out, sizeof(out), "RCPT TO:%s\r\n", s); |
222 out[sizeof(out)-1] = 0; | 224 out[sizeof(out)-1] = 0; |