-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use this package #1
Comments
I also found your extension in vscode, but like my previous question, how do we use it? I have 10 .eml files in my workspace directory, but right clicking over any of them gives me no option to preview eml files. What step am I missing? |
Hi! What should happens is that you install the VS Code extension from the Marketplace (or within VS Code) like you did in your second post and then you click on the EML file and a new item appears in the VS Code file tree which is a folder named after the EML file. This is a virtual folder and it contains the contents of the EML/MSG file. Maybe VS Code API has changed since I last published the extension though and it might be broken now, I will check this in more detail in the coming days. |
Hey Tomas, In the screenshot I've appended I tried to generate an impression what I tried and that everything is opened (EML-file, even working directory etc.). I'm already curious if I'd missed out on something obvious, but either way I consider myself a digital native with lots of VS Code experience, and if I can't find out how to make it work, I suspect that it's generally a bit user-unfriendly, albeit I strongly believe that - once working - the extension will be great and very useful! I'd suggest you, after having answered our concern here, that you include a small showcase in your extension description for future users :) Anyway, thanks in advance for your consideration and work! |
Hey! You didn't miss anything, don't worry: This extension is supposed to work such that when you click on an EML file, a new virtual folder is created in your file explorer pane and in it are virtual files for each attachment and an HML file for the contents. Additionally, clicking that HTML file should render it instead of showing its source code. Some time ago, VS Code API changed and now this does not work. The virtual directory with virtual files still works (for me at least, according to your screenshot, it does not work for you, which I'm confused as to why), but I think it would break if the file was not in the current workspace anyway. Due to the breakage of the VS Code APIs, this extension is effectively broken now. I am investigating new VS Code APIs which could be used in a more direct way; just as the VS Code team removed some old APIs, they made new ones available which I think might be a solution here. I will need to rewrite the extension, so this will take some time, but I will update you all once I'm done and I hope the new version will be more straightforward to use. In any case, this time, I'm definitely including an animation in the readme to show how it works. :-) |
I'm almost done with the rewrite to use the webview panel API for the email preview. I ran into a VS Code bug microsoft/vscode#98873 which prevents me from finishing it off, but when this bug gets cleared or I get educated on why the problem is with my code after all and fix it, I'll update this issue thread. |
Alright folks, the new version 5.0.0 is up and should appear in the VS Code extension marketplace any minute now. I've rewritten the extension to use the VS Code webview API and to stop relying in the now deprecated and removed I have also updated the readme instructions on how to use: simply click to open any EML/MSG file and another tab with its preview will present. If you close it, to get it back, reopen the original EML/MSG file. Upon opening the EML/MSG file, a new folder will also be added to the VS Code workspace and it will contain an HTML file with the same name as the original EML/MSG file where you can inspect the HTML contents of the email (if you want to see just that and not the whole EML) and any email attachments will also be included in this virtual directory so you can access them directly, too. If you don't want this virtual directory for the email, simply remove it from the workspace using its context menu. There is one known issue: the attachment links in the email preview do not work currently, but you can still get at the attachment using the virtual file system added to the workspace. I plan on adding a few configuration options in the future:
Hope you like this release, I'm all ears for feedback and bug reports and wish you both a good day! |
Hey Tomas, As an additional stimulus, I've just opened an email with attachments in both Concerning the differences:
I hope this feedback helps you and others. Please keep us posted on further updates and keep up the great work! |
Hey! That's great bug report, I'm reopening to address this. It would be a great help if you managed to somehow create an EML/MSG with no sensitive information where this still reproduces for me to use to debug, do you think you could do that? Regarding your points:
As you can see in this screenshot, while the attachment links in the email do not work, once the email preview opened, the Explorer pane node by the name of the email file ( This way you should be able to access your attachments until I can make the attachments and links working in the preview work the expected way.
Thank you again for your reports, I hope you will be able to produce a sample email file showing the problem with attachments so that I can use it to debug and I will keep this thread posted when I am able to resolve the issue which prevents the links and non-inline images from working! Take care. |
Hey again, I've tried to create a minimal example out of the specific email mentioned in my previous post. It's included in this post.
. Anyway, downloading to the harddisk seems to work via the
Thanks in advance for your effort. |
FYI I'm working on this and I have improved the performance a lot by parsing the email file before showing the explorer pane virtual directory node and while displaying a UI progress indicator, but I have ran into an issue which I need the VS Code team to help resolve before I can proceed: |
For anyone else having trouble with this, I found that this plugin only does its magic if I first open the directory containing the eml file as a folder. If I just open the eml file directly, nothing happens. |
@seanf that was helpful, nearly there... but seeing this error: ![]() |
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?
The text was updated successfully, but these errors were encountered: