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

Re: folder hook: <limit> does not work



On 2004-09-29, Jerome Quelin <jquelin@xxxxxxxxxxxxx> wrote:

> Therefore, I've set up the following hooks in my muttrc:
> 
>   folder-hook =spam.spam  push "<limit>~N|~O<enter><last-entry>"
>   folder-hook .           push "<limit>~A<enter><last-entry>"
> 
> But this does not seem to work. What am I doing wrong? 
> Launching this command after hitting ":" in this folder achieves the
> wanted result, so can you help me please?

I think the problem is one of quoting.  The folder-hooks see 'push'
and its argument as two arguments where they are expecting only one. 
Try these instead:

    folder-hook =spam.spam  'push "<limit>~N|~O<enter><last-entry>"'
    folder-hook .           'push "<limit>~A<enter><last-entry>"'

HTH,
Gary

-- 
Gary Johnson                               | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx                   | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA