Stefano,

While you are waiting, go into MimeMessageWrapper.setSubject(String) and
add:

   headers.setHeader(RFC2822Headers.SUBJECT, subject);

That ought to do the trick.

        --- Noel

-----Original Message-----
From: Stefano Debenedetti [mailto:ste@;webaccess.mozquito.com]
Sent: Tuesday, October 22, 2002 11:06
To: James Users List
Subject: Re: InternetHeaders mistery


Thanks Noel, I had looked at the MimeMessageWrapper code and filled it with
debug prints but yet I didn't understand how this would happen, anyway, I
take your word for it and question no more! :-)
So, I guess I'd better wait till you're done with it instead of sending to
Danny the messy code I came up with for working around the issue :-) please
keep us informed
Thanks very much, ciao
ste

Noel J. Bergman wrote:
>>1) yes, of course I invoke saveChanges() but it doesn't help me :-)
>>2) every time I set the subject I can then immediately retrieve
>>   the changed version, why isn't that happening inside a service
>>   method of a mailet?
>
>
> This one, if I recall correctly, is because the Subject header is cached
by
> the MimeMessageWrapper when it first loads the message.  You won't see the
> change immediately.  I fixed a related issue before, but I only fixed the
> generic headers, not the standard ones that have their own MimeMessage
> setter.  I'll take a look at it again, if no one beats me to it.
>
> See MimeMessageWrapper.setSubject() and MimeMessageWrapper.getSubject().
> Sorry that I did not catch onto this one earlier.
>
>       --- Noel
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:james-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:james-user-help@;jakarta.apache.org>
>
>
> [CARMEN]
http://webaccess.mozquito.com:8080/mail/ste/inbox/317957525560623648.xml
>


--
To unsubscribe, e-mail:   <mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:james-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-user-help@;jakarta.apache.org>

Reply via email to