DO NOT REPLY [Bug 47991] New: HSMF - All .msg attachments have zeros at the end of the files

View: New views
2 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 47991] New: HSMF - All .msg attachments have zeros at the end of the files

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

           Summary: HSMF - All .msg attachments have zeros at the end of
                    the files
           Product: POI
           Version: 3.6-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSMF
        AssignedTo: dev@...
        ReportedBy: yoda@...


If an attachment is read from a msg file via the getAttachmentFiles() of the
MapiMessage class and streamed to a file, the result will be a file with even
length and lots of zeros in the end. For example a PDF file ends with
%%EOF{CR}, but the attachment from the msg show in an editor:
%%EOF{CR}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}.

Just compare the original files that were put into the msg and the result of
the getAttachmentFiles() method using a diff tool and you will see. Outlook
extracts the attachments correctly by the way, it seems to know the exact
length of the files.

--
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@...
For additional commands, e-mail: dev-help@...


DO NOT REPLY [Bug 47991] HSMF - All .msg attachments have zeros at the end of the files

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Nick Burch <nick@...> changed:

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

--- Comment #1 from Nick Burch <nick@...> 2009-11-03 16:10:11 UTC ---
Can you upload a sample .msg file with an attachment that displays this
behaviour? We'll want to use that so we have something to test a fix against

--
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@...
For additional commands, e-mail: dev-help@...