Coder Social home page Coder Social logo

tomashubelbauer / vscode-email-viewer Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 2.0 15.16 MB

Preview email message files (EML) in VS Code

License: MIT License

TypeScript 100.00%
vscode vscode-extension vscode-preview email email-parsing eml-files eml preview

vscode-email-viewer's Introduction

VS Code Email Viewer allows you to preview EML and MSG files in a VS Code web view (virtual document) as well as mounts EML and MSG file as virtual workspace directories giving you the option of browsing the email attachments.

Usage

Click and EML or a MSG file and wait for the email preview to open. At the same time, a new workspace directory will be added - it is a virtual file system which allows you to browse the email content and attachments.

To reopen the preview after you've closed it, just reopen the EML/MSG again. To close the virtual file system with email content and attachments, remove it from the workspace.

screenshot

Changelog

See the changelog.

To-Do

Wait for the FileSystemProvider issue resolution

microsoft/vscode#103181

Add an option of using the custom editor API instead of the webview API

Perhaps the custom editor API (a read only editor) is a better fit than the web view API, but consider that this will block the user's option to show the actual email file content then, so for that reason maybe the extension should support both and make that configurable.

Make opening the email as a virtual folder in the workspace a config option

Figure out why the file system provider displays the yellow warning the 1st time

It only seems to happen the first time an email is opened, not the subsequent times.

Fix attachment links in the email preview not working

Perhaps the webview needs to be allowed some security stuff for them to work or maybe webview messaging needs to be used and the file open request handled in the extension code.

Add a MSG file test case

Add tests

Consider rendering MSG file content as MarkDown HTML

The body text seems to be raw and only processed for display by Outlook (?) so we can try to render it as MarkDown to make it look at least somewhat nice.

If this is wrong and we get HTML it will just stay HTML after the MarkDown pass so this isn't risky.

vscode-email-viewer's People

Contributors

tomashubelbauer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vscode-email-viewer's Issues

How to use this package

I apologize if my request is obvious to do, but how do we use your package after we clone it locally to our environment? I have visual studio code open right now looking at the source code in your package. what next?

  • Do I simply create .eml files in this workspace?
  • Do I import your package somehow as an extension into VSCode?

No longer works

I receive the warning "The file is not displayed in an editor because it is either binary or uses an unsupported text encoding. Do you want to open it anyway?"

I click "open it anyway". I select Built-in Text Editor. The binary .msg is opened in the built-in text editor but this does not launch another editor with the translated text like it did previously.

VSCode 1.66.2 running on Windows 10.

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.