mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-09-28 01:55:12 +00:00
Sender and recipient were back to front in SMTP65!
This commit is contained in:
parent
219c435a49
commit
effe9ee473
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user