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/08/05 09:55:38 UTC

[Bug 58211] New: Implement write() method in MAPIMessage class.

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

            Bug ID: 58211
           Summary: Implement write() method  in  MAPIMessage  class.
           Product: POI
           Version: 3.13-dev
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSMF
          Assignee: dev@poi.apache.org
          Reporter: alexandre.brun@C6.eu

Currently, the method write() in the class MAPIMessage  return an  
UnsupportedOperationException. 
Is it possible to implement this method ?

I try to save an Outlook message in attachment of an Outlook msg. Right now
there is no way to do this. (without having an error when opening the message)

Thanks.

-- 
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 58211] Implement write() method in MAPIMessage class.

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

--- Comment #3 from Nick Burch <ap...@gagravarr.org> ---
There must be some additional changes needed / bits missing when a msg
attachment gets written out

What would be helpful is if you could create a simple small sample message,
with an attachment inside it. Raise a new bug for the msg attachment saving,
and upload there the outer message, the outlook-saved attachment, and the POI
saved attachment. Bonus marks if you can also run some of the POI dev tools (eg
org.apache.poi.poifs.dev.POIFSLister) to compare how the POI-saved and
Outlook-saved attachments differ

As for learning about the file format, the latest file format specs are
available publicly at:
https://msdn.microsoft.com/en-us/library/cc463912%28v=exchg.80%29.aspx?f=255&MSPPError=-2147217396

-- 
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 58211] Implement write() method in MAPIMessage class.

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

--- Comment #4 from Alexandre <al...@C6.eu> ---
Okey, i will create a new bug with required files to solve the problem.

-- 
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 58211] Implement write() method in MAPIMessage class.

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

--- Comment #2 from Alexandre <al...@C6.eu> ---
The way you describe to save out an attachment works fine with all  kinds of
documents except outlook msg files.
Msg files saved using this method will generate an error when I try to open it
in Outlook. Outlook does not recognize the file saved.
Maybe I should open a bug about that.

I would like to provide you with a patch, unfortunately I have not enough
knowledge about msg format.

-- 
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 58211] Implement write() method in MAPIMessage class.

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
             Status|NEW                         |NEEDINFO
           Severity|normal                      |enhancement

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
To save out an attachment, your only current route is to grab the POIFS
Directory that holds it, then use EntryUtils to save that into a new empty
NPOIFS instance

A write method would be good though, we'd love a patch with unit tests if you
have time to write one!

-- 
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