Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Patrick Schoenfeld
On Sat, Oct 06, 2007 at 12:19:00PM -0700, Gary Johnson wrote:
> 'limit' is a function, not a command.  folder-hooks execute commands 

Ahh. I understand. Thanks for pointing this out.

> not functions.  However, the 'push' and 'exec' commands will execute 
> functions.  So one solution would be this:
>folder-hook =Mailinglisten.mutt-users 'push ~N'

Yep, that does the trick. Thanks for it.

> You don't need a default hook to "limit all" because the limit list 
> is cleared when you change folders.

Okay, thats good to know.

Thanks to all, helping me with this.

Regards,

Patrick


signature.asc
Description: Digital signature


Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Christian Ebert
* Christian Ebert on Saturday, October 06, 2007 at 21:13:02 +0200
> * Patrick Schoenfeld on Saturday, October 06, 2007 at 20:33:21 +0200
>> i am reading several mailing lists (including mutt-users) and prefer to view
>> those folders with 'limit ~N'. But it seems not to be possible to enable this
>> limit for folders by default, by using folder-hooks.
> 
> folder-hook . 'push all'
actually, in this case, you don't need the default command above.

the following should suffice:
> folder-hook =Mailinglisten.mutt-users 'push ~N'

c
-- 
Der Feind ist unsere eigene Frage als Gestalt.
--Carl Schmitt


Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Gary Johnson
On 2007-10-06, Patrick Schoenfeld <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> i am reading several mailing lists (including mutt-users) and prefer to view
> those folders with 'limit ~N'. But it seems not to be possible to enable this
> limit for folders by default, by using folder-hooks.
> 
> Example:
> folder-hook . 'limit all'
> folder-hook =Mailinglisten.mutt-users 'limit ~N'
> 
> It says that limit is an unknown command. But why? According to the help texts
> with '?' this is exactly the command hiding behind the keybinding 'l'. What
> would I need to do in order to achieve what I want?

'limit' is a function, not a command.  folder-hooks execute commands 
not functions.  However, the 'push' and 'exec' commands will execute 
functions.  So one solution would be this:

   folder-hook =Mailinglisten.mutt-users 'push ~N'

You don't need a default hook to "limit all" because the limit list 
is cleared when you change folders.

Regards,
Gary


Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Christian Ebert
* Patrick Schoenfeld on Saturday, October 06, 2007 at 20:33:21 +0200
> i am reading several mailing lists (including mutt-users) and prefer to view
> those folders with 'limit ~N'. But it seems not to be possible to enable this
> limit for folders by default, by using folder-hooks.
> 
> Example:
> folder-hook . 'limit all'
> folder-hook =Mailinglisten.mutt-users 'limit ~N'

try:

folder-hook . 'push all'
folder-hook =Mailinglisten.mutt-users 'push ~N'

c
-- 
Python Mutt utilities 


How to limit displayed messages via folder-hooks

2007-10-06 Thread Patrick Schoenfeld
Hi,

i am reading several mailing lists (including mutt-users) and prefer to view
those folders with 'limit ~N'. But it seems not to be possible to enable this
limit for folders by default, by using folder-hooks.

Example:
folder-hook . 'limit all'
folder-hook =Mailinglisten.mutt-users 'limit ~N'

It says that limit is an unknown command. But why? According to the help texts
with '?' this is exactly the command hiding behind the keybinding 'l'. What
would I need to do in order to achieve what I want?

Thanks in advance,
Best Regards

Patrick


signature.asc
Description: Digital signature