html processing

Matthias Andree matthias.andree at gmx.de
Wed Dec 18 16:12:36 CET 2002


Matt Armstrong <matt at lickey.com> writes:

> David Relson <relson at osagesoftware.com> writes:
>
> [...]
>
>> Anyhow, the implementation of passthrough loads the whole message
>> into ram, a line at a time.  Seems like we could (should) just suck
>> the whole message into ram.
>
> Procmail loads the whole message into RAM and has been doing so for
> years and when an era when RAM was much more scarce.

Procmail is not used very reliably by most people, and when bogofilter
is spawned from procmail, that means: two copies of the mail in
RAM. I've considered to only cache the message in RAM when the input is
non-seekable, because if it's a regular file, we can just rewind(),
print the original message, insert the header and forget about memory
management and caching.

-- 
Matthias Andree




More information about the bogofilter-dev mailing list