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

Re: muttrc and functions



* Jeff Abrahamson <jeff@xxxxxxxxxx> [03-03-04 22:32]:
> Now, being a programmer, I'd like to be able to define a function and
> then just have one line for each:
> 
>     condition1 do-function
>     condition2 do-function
>     condition3 do-function
>     ...
> 
> Is anything of the sort possible in mutt config?  Seems no, but thought
> I'd ask.  It would make a few hundred lines of my mutt config easier to
> read at a glance.

Round-a-bout, if I understand your request.  Use a condition (hook) to
load an rc.file with the other conditions.  ie: source rc.condition.a

set all your hooks except the defining one by source files.  Do not
forget the necessity for a default condition.
-- 
Patrick Shanahan                        Registered Linux User #207535
http://wahoo.no-ip.org                        @ http://counter.li.org