mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-05-29 11:41:30 +00:00
SMTP65/NNTP65.UP: Stop looking for headers on finding blank line
This commit is contained in:
parent
4e482b14cb
commit
675073a6c9
|
@ -577,7 +577,7 @@ void main(int argc, char *argv[]) {
|
||||||
linecount = 0;
|
linecount = 0;
|
||||||
|
|
||||||
while (1) {
|
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;
|
break;
|
||||||
++linecount;
|
++linecount;
|
||||||
if (!strncmp(linebuf, "Newsgroups: ", 12))
|
if (!strncmp(linebuf, "Newsgroups: ", 12))
|
||||||
|
|
|
@ -577,7 +577,7 @@ void main(int argc, char *argv[]) {
|
||||||
strcpy(recipients, "");
|
strcpy(recipients, "");
|
||||||
|
|
||||||
while (1) {
|
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) {
|
if (strlen(recipients) == 0) {
|
||||||
printf("No recipients (To or Cc) in %s. Skipping msg.\n", d->d_name);
|
printf("No recipients (To or Cc) in %s. Skipping msg.\n", d->d_name);
|
||||||
goto skiptonext;
|
goto skiptonext;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user