FETCH command BODY and BODYSTRUCTURE return information about the MIME structure of a message. ATM these use a MimeMessage but creating a MimeMessage is slow. Mailbox API should expose (through MessageResult http://svn.apache.org/repos/asf/james/server/trunk/core-library/src/main/java/org/apache/james/mailboxmanager/MessageResult.java) an outline of the MIME structure allowing the backend optimisation.
FETCH command BODY[section] and BODY.PEEK[section] allows particular MIME parts to be fetched. if the MIME structure allowed content for the part to be associated then the same object structure could be used for optimised processing of these commands as well. the API would need to move away from the simple integer used to record what data is required towards a fetch group. opinions? - robert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
