A trick with perl
Boris 'pi' Piwinger
3.14 at logic.univie.ac.at
Tue Jan 6 15:56:04 CET 2004
Tom Anderson wrote:
>> On 12/24 a patch from Henning Makholm was added to 0.15.12 to help with
>> that situation - letting bogofilter run via pipe instead of
>> stdin/stdout. If you're interested, look for function
>> bogoreader_close_ifeof(), how it is used, and how feof() is used. I
>> don't know enough about pipes to evaluate the patch, test it, or debug
>
> feof() just returns a boolean regarding whether the EOF indicator is
> found on a given stream, and bogoreader_close_ifeof() calls
> bogoreader_close() when feof(fpin) is true.
>
> The question is, how do you set the EOF indicator without closing the
> stream?
Right, this is not helpful. My hope was that -T outputs one
line with the next From_ line.
> Autoflush? I don't recall that working before, but it was
> probably an earlier version than 0.15.12.
I just tried it. I couldn't get it to work.
pi
More information about the Bogofilter
mailing list