Hi Isaac,
* Isaac Claymore <[EMAIL PROTECTED]> [27. Sep. 2002]:
> It seems that folder-hook is executed whenever a folder is entered,
> but is there a 'leave-folder-hook'? 
Notwendig, but there is hope:

> I need to reset something back to normal upon leaving a folder,
> after setting it to folder-specific value in a folder-hook.

folder-hooks are evaluated in the order they appear in the muttrc.
You can use more than only one folder-hook when changing folders.
So you *first* declare a default hook which matches every folder
and produces your "normal" behavior:

   #by default sort messages according their date of arrival:
   folder-hook . set sort=date-received

and then you declare the specific behavior you want in case you
enter this specific folder:

   # in folder with copys of the emails i wrote sort according date
   folder-hook . set pgp_verify_sig=yes
   # in folders which are in my mailing list directory sort as threads:
   folder-hook +~ml/ set sort=threads

So every time you enter a new folder first of all the default
behavior is established and the specific behaviro only in the
specified case(s).

Ciao, Gregor
-- 
"The future is here. It's just not widely distributed yet."
-- William Gibson

Reply via email to