The joy of buffer switching....
David Relson
relson at osagesoftware.com
Mon Feb 24 18:14:11 CET 2003
At 12:05 PM 2/24/03, Matthias Andree wrote:
>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,
Why don't you give it a try. At the moment I'm experimenting with a state
(start condition) parser. It was going well until I broke something, but I
haven't figured out exactly what I busted :-(
David
More information about the bogofilter-dev
mailing list