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

Re: Folder hooks not working.



On Mon, Jan 05, 2004 at 09:48:16PM +0100, Nicolas Rachinsky wrote:
> * 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)?
> 

When it works the record also changes.

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

No, the macro remains at the previous setting (i.e. the last folder-hook
that worked).  

Joe
-- 
Josef Karthauser (joe@xxxxxxxxxx)              http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker)     http://www.uk.FreeBSD.org/
Physics Particle Theory (student)   http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================

Attachment: pgpfpkjeWYThw.pgp
Description: PGP signature