-
Notifications
You must be signed in to change notification settings - Fork 50
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
mhtml: Simple script to view HTML emails in browser #166
Comments
This breaks if there are multiple html parts. You could use something like the following to use the alternative choosing thing instead of all attachments, but I think this would still create wrong html files if there are multiple parts with text/html alternatives and they all contain the doctype and head nodes.
|
Yeah I'm aware of that, the script I posted above works for at least 9/10 html-only emails I receive so that was fair enough for such a short script I thought. I'll think of a good way how to handle multi-html-parts. |
Hi @Anachron, thank you for sharing your approach for opening html emails. I built upon your example for an approach that works for me:
You can change dmenu to fzf or any other fuzzy finder. I use this snippet as a general tool for extracting all attachments in emails in my email script I made for my pinephone: https://git.sr.ht/~anjan/sxmo-userscripts/tree/master/mail.sh#L79 I dont know if my approach is the best but it works for emails with multi html and works as a general attachment extractor. It would be cool to have an attachment extractor included in mblaze. |
The text was updated successfully, but these errors were encountered: