Hi,

Binand Raj S. typed:
> Well, not exactly. The hooks are kept in memory, and whenever you change
> folders (in the case of folder hooks), the name of the new folder is regex
> compared with existing hooks. If one matches, then the associated actions
> take effect. If none matches, then the earlier settings stand. That is
> why you need a catchall "." hook. Also, the order in your muttrc doesn't
> matter. I am not too sure how mutt behaves when there are two hooks
> that match the same mailbox (one hook for linux and another for india,
> for example).

Maybe the order is not supposed to matter (I don't know too much about
the internals of Mutt). But I found out by trial and error that when
then catchall "." hook is at the end, that command gets executed
anyway, and the value is always equal to the default value. It sounds
pretty logical too, that the hooks get executed in order, and thus the
more specific hooks should come towards the end, because the catchall
hook will literally "catch all", and get executed no matter which
folder is opened currently. 

-- 
Mrinal Kalakrishnan <[EMAIL PROTECTED]> (PGP:B1E86F5B) http://listen.to/mrinal
- - - - = ( Redhat Linux 6.1 ) = - - - - = ( Kernel 2.2.12-20 ) = - - - -
Doctors take two aspirins and do it in the morning.

-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH

Reply via email to