Вывести переменную `from` в статусную переменную
Я держу несколько учетных записей в Mutt, получая файлы учетных записей на определенных сочетаниях клавиш.
Каждый аккаунт, как часть его конфигурации, устанавливает set from = "account@server.com"
,
Есть ли способ напечатать текущее значение этой переменной в status_format
, чтобы легко узнать, какой аккаунт я сейчас использую?
Я был на корме muttrc
Страница man, которая показывает следующие последовательности, но ни одна из них не делает то, что мне нужно:
%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
будет отображаться в строке состояния.