Chris Nestrud <[EMAIL PROTECTED]> writes:

> Hello all. I'm trying to make a macro which will toggle between two
> sets of options. I'd either like it to ignore all headers, resulting
> in none being displayed when I view a message, or unignore the ones
> I'm interested in. I can't find anything like a variable that I can
> set so the macro will know what its state is. It's apparently
> possible to get the values of variables, but no "if" constructs or
> anything.

Well, I don't use mutt anymore, but I did something like this by
swapping keybindings back and forth, like so:

# switch from reverse-score to threaded and back.
push "od<end>Oc"
macro index i E # default is important mails first
macro index E "ot<end>:macro index i S<enter>"
macro index S "od<end>Oc:macro index i E<enter>"

I'm not sure that this is the best way to do this, but the
inflexibility of mutt's configuration was one thing that caused me to
look elsewhere for my MUA needs. ;)

Good luck,

-- 
Josh Huber

Reply via email to