> > James creates a Mail object which includes a MimeMessage object
> > which does indeed include the whole message.
> > This is then passed from mailet to mailet through the processors until
it is
> > finished with.
> > If it was important enough, one could always build a lazy-loading
> > MimeMessageProxy.
See MimeMessageWrapper. There will likely be additional work to clean up
the current wrapper, but it does provide lazy loading.
> Then you need to know in configuration which mailet uses what so that
> you could optimize flow.
That would be an administative concern, but the code doesn't care.
MimeMessageWrapper will load headers whenever something asks for the
message's headers, and will load the body (the entire body) whenever
something asks for part of the message contents.
> You would need to consider whether content stays in memory once it has
> been loaded or if it should get released.
The Mail object, and the MimeMessage(Wrapper) are released between
processors.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]