mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-01-17 17:30:41 +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;
|
||||
}
|
||||
++linecount;
|
||||
if (!strncmp(linebuf, "From: ", 6)) {
|
||||
strcpy(recipient, linebuf + 6);
|
||||
if (!strncmp(linebuf, "To: ", 4)) {
|
||||
strcpy(recipient, linebuf + 4);
|
||||
have_recipient = 1;
|
||||
if (have_sender)
|
||||
break;
|
||||
} else if (!strncmp(linebuf, "To: ", 4)) {
|
||||
strcpy(sender, linebuf + 4);
|
||||
} else if (!strncmp(linebuf, "From: ", 6)) {
|
||||
strcpy(sender, linebuf + 6);
|
||||
have_sender = 1;
|
||||
if (have_recipient)
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user