Sender and recipient were back to front in SMTP65!

This commit is contained in:
Bobbi Webber-Manners 2020-06-28 23:42:38 -04:00
parent 219c435a49
commit effe9ee473

View File

@ -429,13 +429,13 @@ void main(void) {
goto skiptonext; goto skiptonext;
} }
++linecount; ++linecount;
if (!strncmp(linebuf, "From: ", 6)) { if (!strncmp(linebuf, "To: ", 4)) {
strcpy(recipient, linebuf + 6); strcpy(recipient, linebuf + 4);
have_recipient = 1; have_recipient = 1;
if (have_sender) if (have_sender)
break; break;
} else if (!strncmp(linebuf, "To: ", 4)) { } else if (!strncmp(linebuf, "From: ", 6)) {
strcpy(sender, linebuf + 4); strcpy(sender, linebuf + 6);
have_sender = 1; have_sender = 1;
if (have_recipient) if (have_recipient)
break; break;