> I agree with your observation about the extra load from using MimeMessage.
> But where/how do you want to remove the usage of MimeMessage, and what
> alternate approach would you use? Maybe add an extra method on MailImpl
to
> retrieve the message header/body data as a stream?
I was thinking of 2 parts
- MailRepository would store the logical parts of the message separatly
- Extra method in the MailImpl to retrieve the logical parts, header, body
attachment etc.
A Mail Repository that stores (a)originnal Mime message, (b)parts of the
message
and (c) a descriptor that allows one to lookup parts would fit the bill
nicely.
For example if a web application wants 'helloworld.txt' attachment from
message 'm-1', it would be nice if the code can go to MailImpl, ask for
attachment 'm-1', read and stream it, without ever parsing the message file.
Harmeet
>
> Serge Knystautas
> Loki Technologies
> http://www.lokitech.com/
> ----- Original Message -----
> From: "Danny Angus" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 16, 2001 5:15 PM
> Subject: RE: [VOTE] Remove model attribute from MailRepositories
>
>
> > Does anyone know what the reason for parseing messages into MimeMessage
> > objects is? surely the Mime status of a message contents would be a
> private
> > matter for mail clients or interested mailets only, and the mail
protocols
> > would only be interested in mail rfc822 messages.
> >
> > In which case creating MimeMessage objects should be the province of
> > mailets, and to do so at a lower level must be unnecessary extra load?
> >
> > By the same token a web app should process the message if it needs to,
not
> > rely on James to process _every_ message just-in-case it is useful.
> >
> > ...IMHO..
> >
> > danny
> >
> > > -----Original Message-----
> > > From: Harmeet [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, June 16, 2001 5:51 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [VOTE] Remove model attribute from MailRepositories
> > >
> > >
> > > +1 to remove Model attribute.
> > >
> > > Mail Repository is a bit slow. While profiling POP3 I realized the
Mail
> > > files are parsed into Java MimeMessage objects repeatedly. It may also
> be
> > > useful to store mime attachements and alternatives separatly from
> > > the Main
> > > message. This would allow a web application (JSP etc) to send the
> > > text(wireless device) or html(browser) body without needing to parse
> the
> > > message.
> > > Does this make sense ?
> > > I am a bit out of cycles but if someone were to do this, I would
> > > be happy to
> > > buy bear or lunch.
> > >
> > > Harmeet
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]