Bogofilter Behaviour on encountering error is unacceptable.

K T Ligesh ligesh at lxlabs.com
Tue Feb 20 23:56:44 CET 2007


 OK, I see that you are taking the easy way out, and just exiting fast when you encounter an error. To print the entire message back to the output will need extra work. I think you will have to save the entire message somewhere and call a function that will print everything when an error is encountered. Or I will have to write a small C program to do that, but I think that would be an unecessary overhead.

 I don't want complex solutions. Just the simple logic that, when an error is encountered, bogofilter returns the entire message unharmed.

 ----------
 buf = read_entire_input();
 ret = pipe_exec_bogofilter(buf);
 if (ret) {
	 print_entire_message(buf);
 }
 ----------


 Thanks.





More information about the Bogofilter mailing list