> 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>

Reply via email to