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

Re: get mail in directory browser



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, April 21 at 10:50 PM, quoth Zhengquan Zhang:
> On Mon, Apr 06, 2009 at 10:39:17PM -0500, Kyle Wheeler wrote:
>> On Monday, April  6 at 09:56 PM, quoth Zhengquan Zhang:
>>> macro index,pager G "! /usr/bin/getmail -v \n" "Invoke getmail"
>
>> macro generic G ...etc...
>
> I tried version 1
>
> macro generic G "<shell-escape>/usr/bin/getmail -v<enter>" \ 
>                    "Invoke Getmail"
>
> in index mode it would say 
> "POP host is not defined."

*generic* mode is like setting up the default. If there's another 
binding specific to index mode or pager mode or whatever mode, that 
other binding will override the generic mode settings.

> My question would be why version 2 works in 3 modes but version 1 
> does not work in index mode?

The key bit of information that you're missing is that "default" 
keybindings also override generic keybindings. Think about it like an 
overlay: you have a set of keybindings for "generic" and you have a 
set of bindings for "index" (including the default index-specific 
bindings). When you're in an index and you press a key, first it 
checks the "index" layer (including all the default index bindings), 
and then if none is found, it checks the generic layer.

By default, the G key in the index layer triggers the internal mail 
fetcher.

Unfortunately, there's no real "unbind" function, so you can't force 
the index layer to pass G on to the generic layer.

At least, that's the way that I understand it; I may be wrong.

~Kyle
- -- 
When the people fear the government, there is tyranny; when the 
government fears the people, there is liberty.
                                                    -- Thomas Jefferson
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAknumZIACgkQBkIOoMqOI149YwCg59lu5wqALXr3L1SRg9iXfsSr
gD8AnjK3Fr8QwwYRIKJ7rXNeBs9A77Da
=LGYJ
-----END PGP SIGNATURE-----