mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #68] [Enhancement] Add support for .eml message view keyboard shortcut #63
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @d99kris on GitHub (Jan 17, 2021).
Original GitHub issue: https://github.com/d99kris/nmail/issues/68
Originally assigned to: @d99kris on GitHub.
This is a feature request to add a keyboard shortcut to view the entire email message (
.emlfile) from message view as well as message list view, in an external program.A user-configurable command shall be used for opening the
eml-file.This request is related to #42 and #66.
@d99kris commented on GitHub (Jan 17, 2021):
Functionality for this has been implemented in above commit. Default key binding is
wto view the.emlfile in an external program. By defaultxdg-openis used on Linux, but it can be customized by settingmsg_viewer_cmd=in~/.nmail/main.conf.Here's a minimal script example that can be used in order to view the message parts and attachments in the file manager
nnn:@Kabouik commented on GitHub (Jan 17, 2021):
Wow. That was fast and the result is spectacular. Thanks a lot for providing a
nnnscript. I was planning on writing one myself but I can assure you the result would have been far from being this clean.This added a lot of potential flexibility to
nmailwith justnnnbase features. And for those who likennn, it is worth configuring it more because much more can be done with its plugins in addition to what I already listed in #66 (i.e., preview pane and image preview within terminal). Works beautifully with thenmailintegration. My 0x0.st upload plugin will be put to good use too!There are some messages that show no parts in
nnn, I observed that with some newsletter html emails despite an html part visible in thenmailattachment view, but I see that it is amunpacklimitation ("Did not find anything to unpack from 2362.eml").I have yet to run some tests to see what is the use case for
parts_viewer_cmdin addition tomsg_viewer_cmd.Thanks, it's huge for me!
@d99kris commented on GitHub (Jan 18, 2021):
That's great to hear! 👍
Yeah, I don't know if
munpackis the best option for parsingemlfiles - it was just the first that came up when I searched online. There may be better options.@Kabouik commented on GitHub (Jan 18, 2021):
munpackseems to be a great little tool, and lightweight. However I think I am getting better results withmu extract --save-allfrom themaildir-utilspackage despite the much bigger size of the package. For instance it successfully shows me html parts in the messages from whichmunpackfailed to extract parts, and also shows much better formatting in the plain text parts, while I was getting some encoding issues withmunpack-extracted plain text files. I'm not saying yet thatmu extractsolves this all, time will tell.@d99kris commented on GitHub (Jan 19, 2021):
Thanks for sharing!
On 2021-01-19 04:51 Kabouik notifications@github.com wrote: