GithubHelp home page GithubHelp logo

jmcleodfoss / msgreader Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 891 KB

Java library for reading Microsoft Compound File Binary (CFB) Files, including Outlook msg files.

License: MIT License

Shell 1.54% Java 98.46%
msg-files java-library microsoft-file-format application javafx-application swing-application command-line-app

msgreader's Introduction

MIT License Codacy Badge Java CI with Maven Codacy Security Scan CodeQL

msgreader

Java library for reading Microsoft Compound File Binary (CFB) Files, including Outlook .msg files.

Contents:

  • msg, the library for reading .msg files
  • msgexplorer, a sample application for viewing a .msg file at any desired level of detail
  • msg_example, a pair of simple applications for displaying basic information about a .msg file, and for saving attachments

Versions:

  • 1.0.0 (2020-05-16) Initial version (all modules)
  • 1.0.1 (2020-11-29) Release of msgexplorer only
  • 1.0.2 (2021-12-07) Update to msg library, all modules updated (no substantial changes to code for msg_example or msgexplorer)

msgreader's People

Contributors

ebourg avatar jmcleodfoss avatar jwmcleod avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

ebourg

msgreader's Issues

mvn site fails for msgexplorer

Error is:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] io.github.jmcleodfoss:msg-parent 1.0.2 ............. SUCCESS [ 23.533 s]
[INFO] io.github.jmcleodfoss:msg 1.0.2 .................... SUCCESS [ 19.246 s]
[INFO] io.github.jmcleodfoss:msgexplorer 1.0.2-SNAPSHOT ... FAILURE [ 14.915 s]
[INFO] io.github.jmcleodfoss:msg_example 1.0.2 ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  57.863 s
[INFO] Finished at: 2021-05-07T05:00:39-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project msgexplorer: Error during page generation: Error rendering Maven report:
[ERROR] Exit code: 1 - C:\Users\jwmcl\cygwin\work\outlook-files\msgreader\msgexplorer\src\main\java\io\github\jmcleodfoss\msgexplorer\module-info.java:2: error: module not found: javafx.base
[ERROR]         requires javafx.base;
[ERROR]                        ^
[ERROR] C:\Users\jwmcl\cygwin\work\outlook-files\msgreader\msgexplorer\src\main\java\io\github\jmcleodfoss\msgexplorer\module-info.java:3: error: module not found: javafx.controls
[ERROR]         requires javafx.controls;
[ERROR]                        ^
[ERROR] C:\Users\jwmcl\cygwin\work\outlook-files\msgreader\msgexplorer\src\main\java\io\github\jmcleodfoss\msgexplorer\module-info.java:5: error: module not found: io.github.jmcleodfoss.voluminou
spaginationskin
[ERROR]         requires io.github.jmcleodfoss.voluminouspaginationskin;
[ERROR]                                       ^
[ERROR]
[ERROR] Command line was: cmd.exe /X /C "C:\PROGRA~1\Java\jdk-14\bin\javadoc.exe @options @argfile"
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'C:\Users\jwmcl\cygwin\work\outlook-files\msgreader\msgexplorer\target\site\apidocs' dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :msgexplorer

MsgExplorer throws exception when processing msi files

As described in a comment in Issue #2, the following exception is thrown when processing an MSI file (which is a Compound Binary File formatted file).

java.lang.NullPointerException
        at io.github.jmcleodfoss.msg.Directory.getChildren(Directory.java:115)
        at io.github.jmcleodfoss.msg.NamedProperties.<init>(NamedProperties.java:50)
        at io.github.jmcleodfoss.msg.MSG.<init>(MSG.java:57)

I assume this is because the (undocumented) MSI file does not include a Named Properties section - at least, the Named Properties Mapping Entry is null.

Unparseable date when opening a MSI file

Hi,

I'm trying to use msgreader to parse a Microsoft Installer file (.msi) which is also based on the Microsoft Compound File format and I got the following exception:

java.text.ParseException: Unparseable date: "January 1, 1601"
        at java.base/java.text.DateFormat.parse(DateFormat.java:395)
        at io.github.jmcleodfoss.msg.DataType$Time.initBaseTime(DataType.java:395)
        at io.github.jmcleodfoss.msg.DataType$Time.<clinit>(DataType.java:376)
        at io.github.jmcleodfoss.msg.DataType.<clinit>(DataType.java:435)
        at io.github.jmcleodfoss.msg.Header.<clinit>(Header.java:114)
        at io.github.jmcleodfoss.msg.MSG.<init>(MSG.java:52)

The file parsed is located here: https://github.com/ebourg/jsign/blob/3.1/jsign-core/src/test/resources/minimal.msi?raw=true

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.