I have no clue if this is any help but here is the raw string. It matches 
the body shown by K9

<html xmlns:v="urn:schemas-microsoft-com:vml" 
xmlns:o="urn:schemas-microsoft-com:office:office" 
xmlns:w="urn:schemas-microsoft-com:office:word" 
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"; 
xmlns="http://www.w3.org/TR/REC-html40";><head><meta 
http-equiv="Content-Type" content="text/html; charset=utf-8"><meta 
name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml><o:shapedefaults v:ext="edit" 
spidmax="1026" /></xml><![endif]--><!--[if gte mso 9]><xml><o:shapelayout 
v:ext="edit"><o:idmap v:ext="edit" data="1" 
/></o:shapelayout></xml><![endif]--></head><body lang="EN-US" 
link="#0563C1" vlink="#954F72"><div class="WordSection1"><p 
class="MsoNormal"><span 
style="color:#1F497D">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm<o:p></o:p></span></p><p
 
class="MsoNormal"><span 
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p><div><div 
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 
0in"><p class="MsoNormal"><b>From:</b>  <br><b>Sent:</b> Thursday, August 
13, 2015 2:50 PM<br><b>To:</b>  &lt;@.com&gt;<br><b>Subject:</b> RE: 
testtestestteststestest<o:p></o:p></p></div></div><p 
class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal"><span 
style="color:#1F497D">hhhhh<o:p></o:p></span></p><p class="MsoNormal"><span 
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p><div><div 
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 
0in"><p class="MsoNormal"><b>From:</b> Erik Stansbury <br><b>Sent:</b> 
Thursday, August 13, 2015 2:46 PM<br><b>To:</b> &lt;<a 
href="@.com">@.com</a>&gt;<br><b>Subject:</b> 
testtestestteststestest<o:p></o:p></p></div></div><p 
class="MsoNormal"><o:p>&nbsp;</o:p></p><p 
class="MsoNormal">Checking<o:p></o:p></p><p 
class="MsoNormal">Formating<o:p></o:p></p><p 
class="MsoNormal"><b>Bolding<o:p></o:p></b></p><p 
class="MsoNormal"><b><i>ItalicBold<o:p></o:p></i></b></p><p 
class="MsoNormal"><b><i><u>Allthethings<o:p></o:p></u></i></b></p></div></body></html>

On Thursday, August 13, 2015 at 4:08:28 PM UTC-7, Richard wrote:
>
>
>
> > Date: Thursday, August 13, 2015 15:03:35 -0700 
> > From: [email protected] <javascript:> 
> > 
> > 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.

Reply via email to