After following this post: Saving email as file in mutt?, while in Pager view, pressing v
and s
in sequence will prompt the user to save the first attachment as a local file. As commented in the solution, there is no header info at all.
How to set up a macro that does the following?
- Save the message with header info to a local file;
- Use Vim to open such a file.
Also, I tried to pipe the message to Vim, by pressing | vim<enter>
in Pager view. It does get the text to Vim, but that Vim session only stayed alive for seconds.
e
to and set EDITOR environmental variable to vim – mrajner Jun 04 '19 at 13:05bind index,pager i edit
, but the new "mapping/binding" looks different from the nativee
's mapping ==> the latter has been mapped toedit read
? – llinfeng Jun 05 '19 at 20:59