You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/06/26 11:28:08 UTC

[Bug 58078] New: Trying to read out HTML Body

https://bz.apache.org/bugzilla/show_bug.cgi?id=58078

            Bug ID: 58078
           Summary: Trying to read out HTML Body
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HSMF
          Assignee: dev@poi.apache.org
          Reporter: georgek901@gmail.com

Created attachment 32859
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32859&action=edit
Example HTML Message created by Outlook 2013

Hello together,

i tried to read out my html content from my self created mail with outlook
2013. My test application returns null when i call the
MAPIMessage.getHTMLBody() method. If you want to try to read out, you'll get
the mail as attachment down below.

Kind regards

george

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58078] Trying to read HTML body of email message returns null

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58078

--- Comment #2 from georgek901@gmail.com ---
Yes i can retrieve it with getRTFBody method, but i need the html formatted
message. Is there any way to get it as html formatted message?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58078] Trying to read HTML body of email message returns null

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58078

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Outlook often decides to put the rich text content into the RTF rather than
HTML fields, for reasons known only to itself. Can you try fetching the RTF
body and see if you get your formatted message back?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58078] Trying to read HTML body of email message returns null

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58078

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEEDINFO                    |RESOLVED

--- Comment #3 from Nick Burch <ap...@gagravarr.org> ---
You'll need to use an RTF to HTML conversion tool then. Apache Tika is able to
do that for you, amongst several options

As Apache POI is correctly returning what's in your file, I'm closing the bug

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 58078] Trying to read HTML body of email message returns null

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58078

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Trying to read out HTML     |Trying to read HTML body of
                   |Body                        |email message returns null
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org