Giter Club home page Giter Club logo

msg2any's Introduction

Msg2Any

This small script allows to convert Outlook Message File (.msg) to any type file. Currently support PDF (default), DOC (not docx), HTML, MHTML, RTF, TXT.

Requirements

Because this is WSH script, So you must run it on Windows. And depends on Outlook, Word.

  • Windows (I tested it on Windows 7(64bit) only)
  • MS Outlook (For read .msg file)
  • MS Word (For write out .pdf and .doc)

Usage

Just double click it, or run below command.

cscript msg2any.js [pdf(default), doc, html, mhtml, rtf, txt]

You start it, it begins to scan files in subfolders. If discover .msg file, it creates folder with same name started with '[MAIL]'. Then extract the message and attachments in it.

msg2any's People

Contributors

ichiroc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

msg2any's Issues

Fantastic utility; Word can't handle long pathnames or filenames...

Hi--

This is a fantastic utility.

On line 127, if the pathname or filename is too long, the call to Word will fail, saying the string is longer than 255 characters.

I'm not familiar enough with CScript to fix the issue. One way could be to use the short 8.3 filename.

If you can fix this for future users, that would be great!

Thanks!

Automation server can't create object

Please add an error indicating that you should have outlook installed

C:\Users\ruslan.lopez\Downloads\msg2any.js(66, 3)
Microsoft JScript runtime error: Automation server can't create object

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.