status_format per account-hook or folder-hook

2015-09-24 Thread Paul Tansom
Is there a way to change the status_format when you change folders / accounts?

I currently have lines similar to:

set status_format = "-%r-Mutt: aptanet.com %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?%?l? 
%l?]---(%s/%S)-%>-(%P)---"

in my main muttrc, and then my folder-hook and/or account-hook sections, but it
never changes on the display. All the other changes I've got in there seem to
work fine.

All I'm trying to do is put something in there to let me know which account I'm
in, so if there's an easier way to do this I'm open to that too.

-- 
 Paul Tansom  |  Aptanet Ltd.  |  https://www.aptanet.com/  |  023 9238 0001
 Vice Chair, FSB Portsmouth & SE Hampshire Branch  |  http://www.fsb.org.uk/
=
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP


Re: status_format per account-hook or folder-hook

2015-09-24 Thread Suvayu Ali
On Thu, Sep 24, 2015 at 12:22:31PM +0100, Paul Tansom wrote:
> Is there a way to change the status_format when you change folders / accounts?
> 
> I currently have lines similar to:
> 
> set status_format = "-%r-Mutt: aptanet.com %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?%?l? %l?]---(%s/%S)-%>-(%P)---"

Hmm, I thought maybe you could replace the domain with \$folder.  I
expected the escaped `$' would prompt evaluation everytime the status
line is rendered, rather than when the config file is parsed.  But that
does not seem to work in my testing.  Maybe simple $folder does the
trick?  I do not have a easy way to test multiple accounts.

-- 
Suvayu

Open source is the future. It sets us free.