> You could try something like:
> 
> folder-hook . 'set status_format="-%r-Mutt: [$folder] %f [Msgs:%?M?%M/?%m%?n? 
> New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? 
> Inc:%b?%?B? Back:%B?%?l? %l?]---(%s/%?T?%T/?%S)-%>-(%P)---"
> 
> This technique also allows using your own labels instead of $folder:
> 
> folder-hook .                'set my_account="default"'
> folder-hook 'imap.gmail.com' 'set my_account="gmail"'
> folder-hook 'imap.yahoo.com' 'set my_account="yahoo"'
> 
> folder-hook . 'set status_format="-%r-Mutt: [$my_account] %f 
> [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? 
> Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?B? Back:%B?%?l? 
> %l?]---(%s/%?T?%T/?%S)-%>-(%P)---"'

Thanks, Kevin, this works a treat. And of course I knew, at an
intellectual level, that I can use variables inside of variables ...

Reply via email to