Hi again,

> However, looking over his code, it did appear that isModified would be
true
> (it would have been set by any number of operations on the reply object).

you are right, but then take a look at next magic thing (line 146):
MimeMessageWrapper.writeTo(OutputStream os)

in this method it obtains stream as
InputStream in = source.getInputStream();

Where source is MimeMessageSource (which is actually
MimeMessageAvalonSource) and... it returns InputStream as sr.get(key)!

When, can it be so that no matter what you do with the message (mime one) in
between store and retrieve nothing will be actually changed because message
is being retrieved during store. What you think?

Andrei



----- Original Message -----
From: "Noel J. Bergman" <[EMAIL PROTECTED]>
To: "James Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 1:10 AM
Subject: RE: Re: Matcher/Mailet Library


> Oh good point ... and if it IS a MimeMessageWrapper instance, then the
code
> would be active.
>
> However, looking over his code, it did appear that isModified would be
true
> (it would have been set by any number of operations on the reply object).
>
> --- Noel
>
> -----Original Message-----
> From: Andrei Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 17:19
> To: James Developers List
> Subject: Re: Re: Matcher/Mailet Library
>
>
> I think it is always instance of MimeMessageWrapper if you obtain it as
> mail.getMessage()... in mailet...
> Andrei
>
> >
> > Seems to me that if the MimeMessage is NOT a MimeMessage wrapper, then
> > saveStream is TRUE by default and writeMessageTo will be called.
> >
> > Mind you, I have NOT traced all of the code path to see what happens.
> >
> > --- Noel
> >
> >
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to