--- mutt-1.5.8/PATCHES~ never +++ mutt-1.5.8/PATCHES Tue Feb 22 15:46:58 CST 2005 @@ -1,0 +1 @@ +patch-1.5.8.dgc.stunted822.1 diff -Pur mutt-1.5.8-base/parse.c mutt-1.5.8/parse.c --- mutt-1.5.8-base/parse.c Thu Feb 3 12:47:53 2005 +++ mutt-1.5.8/parse.c Tue Feb 22 15:46:58 2005 @@ -46,9 +46,15 @@ FOREVER { - if (fgets (buf, *linelen - offset, f) == NULL || /* end of file or */ - (ISSPACE (*line) && !offset)) /* end of headers */ + if (fgets (buf, *linelen - offset, f) == NULL) /* end of file or */ { + *line = 0; + return (line); + } + if (ISSPACE (*line) && !offset) /* end of headers */ + { + while ((ch = fgetc(f)) && (ch == '\n' || ch == '\r')); + ungetc(ch, f); *line = 0; return (line); }