Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Decoding-problems on subject

843830Jul 10 2006 — edited Jul 3 2008
Hello all,

as far as I observed javamail does an automatic decoding of an eMail-subject for me. So a

Subject: =?iso-8859-1?B?QW1hem9uLmRl?=

automaticly becomes

Subject: Amazon.de


Now I get a message with the subject:

Subject: openBC:=?UTF-8?Q?=20Ingo=20Gr=C3=BCneberg=20hat=20?= =?UTF-8?Q?Sie=20als=20Kontakt=20best?==?UTF-8?Q?=C3=A4tigt?=

which will not be decoded by javamail. I tried to work around the problem and forced my application to decode the subject one more time - no result:

System.out.println(MimeUtility.decodeText("openBC:=?UTF-8?Q?=20Ingo=20Gr=C3=BCneberg=20hat=20?= Sie als Kontakt best=?UTF-8?Q?=C3=A4tigt?="));

-> openBC:=?UTF-8?Q?=20Ingo=20Gr=C3=BCneberg=20hat=20?= Sie als Kontakt best=?UTF-8?Q?=C3=A4tigt?=


Then I thought the string would be the problem, but Thunderbird decodes the subject right!??

Any sugestions? Thanks a lot in advance!

Stephan

Message was edited by:
lotk
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2008
Added on Jul 10 2006
13 comments
1,367 views