Michael --

...and then Michael P. Soulier said...
%     Hey people. 
% 
%     I'm mounting the same home directory on several *nix boxes at work, and
% there are a few options in my .muttrc that I'd like to be set depending on my
% platform. I can take the output of a uname -s in a script and control most
% options that way, but is there a built-in way for conditional options in my
% .muttrc?

Not really -- a mutt scripting language has been discussed many times
before, and may actually come to fruition one day -- but you can
reference shell environment variables in your muttrc file.  At the very
least you could have your main muttrc include a

  source $HOME/.mutt/muttrc-$MACHNAME

where you set MACHNAME in your .profile or .login; you might even be able
to directly use

  source $HOME/.mutt/muttrc-`uname -n`

and skip the env var (but then run the uname command every time you read
your muttrc; you may be obsessive enough, as am I, to want to avoid that
extra few microseconds ;-)


% 
%     Thanks,

HTH & HAND


% 
%     Mike
% 
% -- 
% Michael P. Soulier <[EMAIL PROTECTED]>, GnuPG pub key: 5BC8BE08
% "Pretty soon, massive bloat is the industry standard and everyone is using
% huge, buggy programs not even their developers can love."
%     -Eric S. Raymond, The Art of Unix Programming




:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

PGP signature

Reply via email to