Git Product home page Git Product logo

msg_parser's Introduction

msg_parser

image

image

Documentation Status

Updates

Python module for parsing outlook msg files.

Features

  • Parse MSG file.
  • Convert MSG file to EML file.
  • Output MSG file as JSON string.
  • Handles nested MSG/EML attachments.
  • Works 100% on Linux machines, do not require any windows libraries.

Installation

  • Basic installation

    pip install msg_parser
  • With RTF decompression

    pip install msg_parser[rtf]

Usage

  • Run CLI command

    $ msg_parser --help
      usage: msg_parser [-h] -i FILE [-j] [-e EML_FILE]
    
     Microsoft Message Parser
    
     optional arguments:
         -h, --help            show this help message and exit
         -i FILE, --input FILE
                               msg file path
         -j, --json            output parsed msg as json to console
         -e EML_FILE, --eml EML_FILE
                               provide email file path to save as eml file.
  • Import in python modules

    from msg_parser import MsOxMessage
    
    msg_obj = MsOxMessage(msg_file_path)
    
    json_string = msg_obj.get_message_as_json()
    
    msg_properties_dict = msg_obj.get_properties()
    
    saved_path = msg_obj.save_email_file(output_eml_file_path)

msg_parser's People

Contributors

pyup-bot avatar vikramarsid avatar

Watchers

James Cloos avatar  avatar

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.