james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JG...@intraware.de
Subject Adding a header field to a MimeMessage
Date Wed, 11 Sep 2002 12:41:11 GMT

Hello, there.

I have the following problem:

I either need to change the subject of a message or add a header field
"Keywords" to it.
The spool of this processor is  this_mailet -> other_mailet

Other_mailet needs specific data in either the subject line or the Keywords
field, which are too complicated for the users to type in.
So I am writing "this_mailet" to map a short version of the subject line to
the complicated one.

My problem is:

if I call
  mimemessage.setHeader("Keywords", str)
  mimemessage.setSubject("complicated stuff")

and do a

the message keeps unchanged (old value of subject / no value in header).

What am I doing wrong?

Johannes Grob

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

View raw message