<<< Date Index >>>     <<< Thread Index >>>

Re: Folder hooks not working.



* Josef Karthauser <joe@xxxxxxxxxx> [2004-01-05 13:50 +0000]:
> I'm trying to get folder-hooks working properly in mutt 1.5.5.1i, but
> they are erratic.
> 
>     folder-hook +IN.root-periodic$ set record=+IN.root-periodic
>     folder-hook +IN.root-periodic$ 'macro index \cx "|isync 
> IN.root-periodic\n"'
>     mailboxes +IN.root-periodic
> 
>     folder-hook +IN.pact$ set record=+IN.pact
>     folder-hook +IN.pact$ 'macro index ^X "$y|isync IN.pact\n"'
>     mailboxes +IN.pact
> 
> What should be happening is that the control X key should be bound to
> invoke a call to isync for the named folder, etc.  What happens is that
> the binding works, until I change folders with the 'c' key.  After
> changing folder the folder-hooks for the new folder don't always work.
> It seems that if I change folders with the space key (selecting the next
> mailbox with new mail in it) the hooks work, but if I modify the name or
> type a new one in in full it doesn't work.
> 
> Is this a bug in mutt, the documentation, or my understanding of either?

I think this should work, and here folder-hooks seem to work fine for
changing keybindings.

Do the other folder-hooks work (e.g. does record change as you want
it)?

In the case it does not work correctly, is the old binding of ^X
preserved, or is the macro removed?

Nicolas