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

Re: folder-hook using default in every case



On Mon, Oct 27 2003 at 07:40:30PM BRST, "G. M. Bodnar" <greg@xxxxxxxxxxxx> 
wrote:
> I've run across an issue using folder hooks that I wasn't able to
> resolve via seaching google and the mutt-users archive (however, I only
> went back to mid-2002).
> 
> I've defined the following hooks for mutt 1.4.1:
> 
> 
> unhook folder-hook
> 
> folder-hook . 'set sort=threads'
> folder-hook . 'set sort_aux=date-received'
> folder-hook . 'set digest_collapse'
> folder-hook . 'set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %s"'
> folder-hook . push <collapse-all>
> folder-hook . push 'D~=\n'
> folder-hook . push 'D~s unsubscribe\n'
> 
> folder-hook =sent_mail 'set sort=date-sent'

        AFAIK, hooks are defined by regexp (or so says the manual), and I
don't think "=", "+" or "!" expansions are performed.

        Therefore, you should try

folder-hook '/sent-mail' 'set sort=date-sent'

        And so forth.



                rbp
-- 
 Rodrigo Bernardo Pimentel                         <rbp@xxxxxxxxxxxx>
 http://isnomore.net                          GPG KeyId: <0x0DB14978>

If you want to see the latest feature in Galeon, check out what new video game
has been added to emacs, or find out how badly the new binutils breaks kernel
compilation, sid makes it easy.
          -- Jonathan Corbet, http://lwn.net