The joy of buffer switching....

Matthias Andree matthias.andree at gmx.de
Mon Feb 24 18:05:26 CET 2003


David Relson <relson at osagesoftware.com> writes:

> Returning to the master/slave design, another approach would be to have
> the master separate out each mime body part (with decoding) and pass
> that (as a buffer) to the slave.  It would use additional memory, but it
> should be much simpler than all the complicated buffer contortions
> you're encountering.

This is a sane approach and it will work, promised. The possibility that
we might end up passing 10 MB buffers around scares me though. Some mail
admin will chop off our head for that.

As mentioned before, I wonder if we can pass buffer slices down and use
the slave's yywrap() to call back into the master for a "decode the next
slice and send it down" method.

-- 
Matthias Andree




More information about the bogofilter-dev mailing list