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

Re: Meta-Macro's and General Folder-Hook Question



* Stef <stef@xxxxxxxxx> [2004-06-07 19:40 -0400]:
>       My problem comes with the problem of having
> macro's calling macro's (i call these meta-macros,
> rightly or wrongly, so apologies if my terminology
> gets confusing). I have two macro's like this:
> 
>       macro index ,m <tag-pattern>'~s 
> "Undeliverable.Mail"\|"[Oo]ut.[Oo]f.*[Oo]ffice"\|"[Oon 
> ]*[Vv]acation\|[Hh]oliday"\|"Returned.mail"'<enter><tag-prefix-cond><save-message><enter><enter><sync-mailbox>
>  'Spam Filter'
> 
>       # This is the archive macro for the main 'INBOX'
> macro index .a 
> <change-folder>'!'<enter><tag-pattern>~m>100<enter><tag-prefix-cond><save-message>Mail/inbox-arc<enter><sync-mailbox>
>  'INBOX Archive Filter'
> 
> 
>       Now, both of these work as i want, however,
> i keep finding myself doing the four keypresses and
> thought, 'hey, why not jst cut this down to two ?'
> (or one later such as ctrl-y or such). So, i (perhaps
> naively) tried this:
> 
>       macro index ,z ',q<enter>,w<enter>" 'My Meta-Macro'
> 
>       However, that stops if the first macro doesnt
> match anything with a 'Nothing to do' error message,
> so, is there anyway to tell it to proceed onto the
> next 'macro' regardless of the previous exit state ?

I'm a bit confused about your meta macro, since I can't see how it is
connected with the two macros above.

But if you have something like 
macro index ,z ',m.a' "call ,m and .a"
then
macro index ,z ',m<end-cond>.a' "call ,m and .a"
should do what you want, but I haven't tried it.

Otherwise please ask again.

HTH,
Nicolas