在 mutt 的 status_format 中打印“from”变量

在 mutt 的 status_format 中打印“from”变量

我通过在某些键盘快捷键上获取帐户文件来在 mutt 中保留多个帐户。

每个帐户作为其配置的一部分,设置。set from = "[email protected]"

有没有办法打印这个变量的当前值status_format,以便轻松知道我当前正在使用哪个帐户?

我一直浏览muttrc手册页,其中显示了以下序列,但似乎没有一个能满足我的需要:

          %b     number of mailboxes with new mail *
          %d     number of deleted messages *
          %f     the full pathname of the current mailbox
          %F     number of flagged messages *
          %h     local hostname
          %l     size (in bytes) of the current mailbox *
          %L     size (in bytes) of the messages shown (i.e., which match the current limit) *
          %m     the number of messages in the mailbox *
          %M     the number of messages shown (i.e., which match the current limit) *
          %n     number of new messages in the mailbox *
          %o     number of old unread messages *
          %p     number of postponed messages *
          %P     percentage of the way through the index
          %r     modified/read-only/won't-write/attach-message indicator, according to $status_chars
          %s     current sorting mode ($sort)
          %S     current aux sorting method ($sort_aux)
          %t     number of tagged messages *
          %u     number of unread messages *
          %v     Mutt version string
          %V     currently active limit pattern, if any *
          %>X    right justify the rest of the string and pad with "X"
          %|X    pad to the end of the line with "X"
          %*X    soft-fill with character "X" as pad

答案1

只需在 中包含您想要在状态栏中看到的变量即可status_format。例如:

  set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?─── $my_akr ───"

$my_akr是我为每个帐户设置的一个变量,因此我知道我正在使用哪个帐户。您可以用它替换它,$from变量的内容from将显示在状态栏中。

相关内容