Thomas Roessler <[EMAIL PROTECTED]> wrote on Sun, 26 Mar 2000:
> His point is that he'd like to be able to use the new
> unhook command in the beginning of each profile, and load
> standard hooks at the right place from a different file.
If you say so. :-)
> >> Known problems/questions: - Is there a way to include
> >> a message on the status bar with a macro?
>
> > You can customise the status bar to your heart's
> > content by setting the $status_format variable, so yes.
> > :-)
>
> He's talking about the line with the error messages.
> However, modifying the status bar should work, too.
Hmmm, well I read "status bar" as really the status bar, not the message
line, even though I did consider that. Also the reason he wanted to do
this was that he wouldn't forget which profile was loaded, showing a
single message once wouldn't accomplish that.
Although I guess we'll hear soon enough if he's not happy with changing
$status_format as a solution. :-)
> You can always do funny things with the shell - backtick
> expansions are your friend.
>
> source ~/.mutt/colors.`if [ "$TERM" = "linux" ] ; then echo linux ; else echo
>default ; fi`
I never thought of that, thanks for the tip. You still can't use
this to do things based on the contents of a *Mutt* variable, only
environment variables, which makes it not nearly so useful.
You have to remember that this will use your default shell's syntax,
not /bin/sh for expansion, right? So for me, using tcsh, it would
instead end with an endif, etc.
Regards,
Mikko
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
"If you're not impossible to tolerate, you're not trying hard enough."