SMTP65/NNTP65.UP: Stop looking for headers on finding blank line

This commit is contained in:
Bobbi Webber-Manners 2021-11-16 15:02:03 -05:00
parent 4e482b14cb
commit 675073a6c9
2 changed files with 2 additions and 2 deletions

View File

@ -577,7 +577,7 @@ void main(int argc, char *argv[]) {
linecount = 0;
while (1) {
if ((get_line(fp, 0, linebuf, LINEBUFSZ) == 0) || (linecount == 20))
if ((get_line(fp, 0, linebuf, LINEBUFSZ) == 0) || (linecount == 20) || (linebuf[0] == '\r'))
break;
++linecount;
if (!strncmp(linebuf, "Newsgroups: ", 12))

View File

@ -577,7 +577,7 @@ void main(int argc, char *argv[]) {
strcpy(recipients, "");
while (1) {
if ((get_line(fp, 0, linebuf, LINEBUFSZ) == 0) || (linecount == 20)) {
if ((get_line(fp, 0, linebuf, LINEBUFSZ) == 0) || (linecount == 20) || (linebuf[0] == '\r')) {
if (strlen(recipients) == 0) {
printf("No recipients (To or Cc) in %s. Skipping msg.\n", d->d_name);
goto skiptonext;