mutt%20%E5%9C%A8%E5%A4%96%E9%83%A8%E5%91%BD%E4%BB%A4%E4%B8%AD%EF%BC%88%E4%BB%85%EF%BC%89%E6%9F%A5%E7%9C%8B%E6%B6%88%E6%81%AF%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E6%B6%88%E6%81%AF%E6%BA%90.png)
我想在外部命令中查看一些邮件,例如less
或vim
,但是当我执行以下操作时
macro index <f6> "|less -\n" "view with less"
那么整个邮件源将显示在外部命令中,这(至少对我来说)太多了。我可以只将 (neo)mutt 显示的内容通过管道传输给外部命令吗?
答案1
通过设置该pipe_decode
选项,Mutt 将在必要时解码消息,并清除标头,以便只有您通常在寻呼机中看到的标头才会通过管道传输到您使用的任何命令。
来自我系统上的 Mutt 手册:
3.208. pipe_decode
Type: boolean
Default: no
Used in connection with the <pipe-message> command. When unset, Mutt
will pipe the messages without any preprocessing. When set, Mutt will
weed headers and will attempt to decode the messages first.
(也可以在这里找到:http://www.mutt.org/doc/manual/#pipe-decode)