>> >> Yes, it makes the code more complicated, but I think it's only because >> we >> still haven't fully adapted our thinking to our model. It occurred to me >> today >> that if we were MIME parsing at delivery time, we could also store the >> mime >> structure of a message in the database. An IMAP BODY.PEEK for mime >> structures >> would be nearly instantaneous. This is probably the single most common >> request >> from an email client, especially web-based ones that need to refresh >> their >> message list on almost every page hit. > > This can be very interesting to do. Of course, we still need to store > the message in its original format, but to store some information on > mime-parts would be very benificial for performance.
This would also lend to the header caching, or at least let me finish up a sort and thread implementation that would be very fast. just my 0.02 -leif