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

Re: macro question



* On Thu, Jul 07, 2005 Nabeel Khatri (nabeel@xxxxxxxx) muttered:
> i'm trying to create a macro (to be started by keystroke "h") that
> will check mail and then sync the mailbox... i tried the following:
> 
> macro index "h"       "Gt"

Use function names! See section 6.4 of the manual. It's more readable
_and_ portable since keys might be redifined. You can see which functions
are avaibale in any menu via the help function (?).

> since shift+g checks mail

<fetch-mail> G

> and t syncs the mailbox...

That's wrong, '$' does.
<sync-mailbox> $

macro index h '<fetch-mail><sync-mailbox>' "fetch new mail and sync"

HTH,

Michael
-- 
#define FALSE   0               /* This is the naked Truth */
#define TRUE    1               /* and this is the Light */
        -- mailto.c

PGP-Key-ID: 0xDC1A44DD
Jabber:     init[0]@amessage.de