diff -u fetchmail-6.2.2/transact.c fetchmail-6.2.2-bcl/transact.c --- fetchmail-6.2.2/transact.c Fri Feb 28 18:14:42 2003 +++ fetchmail-6.2.2-bcl/transact.c Tue Jun 10 07:15:28 2003 @@ -511,6 +511,19 @@ * line before the body! Without this check fetchmail segfaults. * With it, we treat such messages as though they had the missing * blank line. + * + * 06/09/2003 The problem with leaving the message on the server + * bcl is that you end up transferring them over and + * over again, eating up huge amounts of time and + * bandwidth, and you have to go and manually + * delete them -- which is not acceptable in large + * installations. + * I have modified this to act as if it had found + * the blank after the headers, and to continue + * on and pass it to the local MTA. + * NOTE: This works for me. I do not use many of the + * advanced features, so I may be breaking something + * else (I only use pop3 with SSL encryption). */ if (!isspace(line[0]) && !strchr(line, ':')) { @@ -519,7 +532,13 @@ if (outlevel > O_SILENT) report(stdout, GT_("incorrect header line found while scanning headers\n")); - retain_mail = 1; + +/* [bcl] hack to get it to download broken messages */ +/* retain_mail = 1; */ + headers_ok = TRUE; + has_nuls = (linelen != strlen(line)); + free(line); + goto process_headers; } /* check for RFC822 continuations */