Jochem van Dieten wrote:
> 
> They are the result of applying a Quoted-Printable transfer encoding on the 
> original message. You need to decode the message before displaying. See RFC 
> 2045 for the algorithm.

You're right.

I'm trying various methods to solve but haven't come up with anything 
yet.  Here's my latest attempt:

<cfset inputStream =
        variables.mimeUtil.decode(objMessage.getInputStream(),
        objMessage.getEncoding() )>
<cfset out = createObject("java","java.lang.StringBuffer")>
<cfset n = inputStream.read()>
<cfloop condition="n neq -1">
        <cfset out.append(chr(n))>
        <cfset n = inputStream.read()>
</cfloop>
<cfset parts[1][1] = out.toString()>

Unfortunately, this provides the same results.  I'm specifically working 
with a message that is *NOT* a multipart message but it is encoded 
quoted printable.  I verified that objMessage.getEncoding() returns 
"quoted-printable", and the above code does run without error.

variables.mimeUtil is actually an instance of 
javax.mail.internet.MimeUtility

Guess I'll keep cranking away!

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262205
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to