After much thought it seems a database solution would a great
The concept is to put header fields, message body and attachments into a
database and then render the HTML using active scripting. (Alternatively
just the headers and message bodies, leaving the attachments as just
pointers to disk files).
The main purpose of this would be to cut down on static HTML, much of
which is probably never used, and provide more complex methods of
sorting messages without generating any more static HTML.
It seems quite a chunk of this functionality is already within
mha-decode except for being able to stream the headers into separate
Gerry Hickman (London UK)