Index: passthrough.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/passthrough.c,v retrieving revision 1.36 diff -u -r1.36 passthrough.c --- passthrough.c 27 Dec 2005 15:38:12 -0000 1.36 +++ passthrough.c 7 Feb 2006 00:33:20 -0000 @@ -215,9 +215,6 @@ } if (!hadlf) (void) fputs(eol, fpo); - - if (fflush(fpo) || ferror(fpo)) - cleanup_exit(EX_ERROR, 1); } static void build_spam_header(void) @@ -282,6 +279,13 @@ if (passthrough) write_body(rf, rfarg); + + if (passthrough || verbose || Rtable) { + if (fflush(fpo) || ferror(fpo)) + cleanup_exit(EX_ERROR, 1); + } + + return; } void write_log_message(rc_t status)