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 2011/06/28 12:51:23 UTC

DO NOT REPLY [Bug 51446] New: Can't extract attachments from a RTF message

https://issues.apache.org/bugzilla/show_bug.cgi?id=51446

             Bug #: 51446
           Summary: Can't extract attachments from a RTF message
           Product: POI
           Version: 3.8-dev
          Platform: Macintosh
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSMF
        AssignedTo: dev@poi.apache.org
        ReportedBy: efoncubierta@zaizi.com
    Classification: Unclassified


Created attachment 27222
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27222
RTF message

The attached file as been created as following (Microsoft Outlook 2007):

- Go to Tools -> Options -> Mail Format -> Signatures
- Create a new signature (e.g. Demo)
- Add a picture to your new signature (e.g. My Documents/My Pictures/Sample
Pictures/Blue hills.jpg)
- Send an email using that signature
- Use the received message to do the test

I want to be able to extract the image data in the signature using MAPIMessage
class, but the attachment has a null value in the attachData property.

On the other hand, this message has the following header:

Content-Type: application/ms-tnef; name="winmail.dat"

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 51446] Can't extract attachments from a RTF message

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

Selvakumar Vijayakumar <vs...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1
           Platform|Macintosh                   |Other
         OS/Version|All                         |Windows 7
           Severity|normal                      |blocker

--- Comment #3 from Selvakumar Vijayakumar <vs...@yahoo.com> 2012-04-06 19:01:09 UTC ---
Nick,

If the attachment data is empty, I can get the attachment as embedded message
by using attachment.attachmentDirectory.getAsEmbededMessage() which helps to
get the .msg attachment properties like ( from,CC,TO,BCC, etc).

But I have the special use case, where I want to get the embeddedMessage as
binary. If I save the binary as .msg, I should able to open that with
Microsoftoutlook. Is there anyway I can get the embedded message as binary?.

If this feature is not already there , Will you please add the functionality to
extract the binary or InputStream for the given MAPIMessage?.

Thanks
Selva

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 51446] Can't extract embedded binary attachments(.msg) from a outlook .msg file

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

Nick Burch <ni...@alfresco.com> changed:

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

--- Comment #4 from Nick Burch <ni...@alfresco.com> 2012-04-09 17:43:55 UTC ---
The outlook format doesn't work that way, so there's no input stream to just
fetch. Nested outlook files are stored expanded in the ole2 stream. (Other
embedded files are typically stored as just the one entry, so they can be
fetched directly)

You could try copying the root directory of the attachment into a new
POIFSFileSystem (there's a POIFS util to help with that), and see if that plays
nicely with a copy of outlook. That should work just fine with HSMF, as that's
largely analogous to what getAsEmbededMessage() does, I just don't know if
there's any extra magic that a .msg file needs for outlook that is stored
outside of the directory

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 51446] Can't extract embedded binary attachments(.msg) from a outlook .msg file

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

Selvakumar Vijayakumar <vs...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Can't extract attachments   |Can't extract  embedded
                   |from a RTF message          |binary attachments(.msg)
                   |                            |from a outlook .msg file
         OS/Version|                            |All

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 51446] Can't extract attachments from a RTF message

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

Nick Burch <ni...@alfresco.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
         OS/Version|                            |All

--- Comment #1 from Nick Burch <ni...@alfresco.com> 2011-07-31 19:34:32 UTC ---
If the attachment data is empty, then that normally means there's a
attachmentDirectory instead. Did you check that?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 51446] Can't extract attachments from a RTF message

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

Selvakumar Vijayakumar <vs...@yahoo.com> changed:

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

--- Comment #2 from Selvakumar Vijayakumar <vs...@yahoo.com> 2012-04-06 19:00:02 UTC ---
Nick,

If the attachment data is empty, I can get the attachment as embedded message
by using attachment.attachmentDirectory.getAsEmbededMessage() which helps to
get the .msg attachment properties like ( from,CC,TO,BCC, etc).

But I have the special use case, where I want to get the embeddedMessage as
binary. If I save the binary as .msg, I should able to open that with
Microsoftoutlook. Is there anyway I can get the embedded message as binary?.

If this feature is not already there , Will you please add the functionality to
extract the binary or InputStream for the given MAPIMessage?.

Thanks
Selva

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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