如何使用 (neo)mutt 在外部命令中(仅)查看消息,而不是消息源

如何使用 (neo)mutt 在外部命令中(仅)查看消息,而不是消息源

我想在外部命令中查看一些邮件,例如lessvim,但是当我执行以下操作时

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

相关内容