> Date: Thursday, August 13, 2015 15:03:35 -0700
> From: [email protected]
>
> I am trying to create a fork of K9 that implements a specialized
> storage in order to use an odd email format. I have the body of
> an email message as a string but it appears to be encoded in
> HTML. Right now I am using the TextBody class but what can I do
> so that it decodes this message and displays it in a nice pretty
> format rather than this mess of <html xmlns:> tags?
Is message you are looking at single-part - text-only, single-part -
html-only or multi-part? I believe that if it's single-part
text-only ("Content-Type: text/plain") that K-9 leaves it that way.
If it's multi-part, K-9 appears to only show the html part.
Obviously if it's single-part html-only, (Content-Type: text/html)
then K-9 only has the html.
I'm fairly certain that the message body (html encoded or otherwise)
that you are seeing is the way that it's being pulled from the
imap/pop server -- i.e., the way it was generated by the originating
mail client/program, not an encoding that K-9 is doing. All most
email clients (most likely K-9 included) do is render what they
retrieve.
If you are pulling multi-part (Content-Type: multipart/alternative;)
you may be able to get the text part, which K-9 doesn't display,
which should be clean text (though some originating mail
clients/programs will put html markup in what they claim is a
text/plain message body part).
--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to [email protected]
To unsubscribe, email [email protected]
To report an issue with K-9 Mail, visit
http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail
---
You received this message because you are subscribed to the Google Groups "K-9
Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.