Martti Rahkila <[EMAIL PROTECTED]> wrote on Sat, 25 Mar 2000:
> 3) Check that muttrc doesn't contain any of the profile definitions,
> I noticed that muttrc defaults and/or send-hooks will override
> some of these! (Should it do that?)

I'm not sure I understand what you mean by your description.  All Mutt
commands have equal priority, regardless of context, so the latest
setting for anything will be used.  If you set a variable first in the
main .muttrc and then with a send-hook, after the send-hook has been
invoked that value of the variable will be used from that point on.

If that doesn't answer you, could you please give a few more details..?

> 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. :-)

> - what would be an elegant way to include "forget-passphrase" command
> either in the macro or the profile?

I don't know about that; I don't use PGP.  You cat at least do

  push <forget-passphrase>

.. in the source file, however this has the drawback that it forgets it
every time you load a profile, even if the used key has not changed.
This is an annoyance if you load the profile with a send-hook.  I
suppose you could have a wrapper source file for the macro invocations
that have this added command and then source the same file as the
send-hooks, however in that case the passphrase wouldn't be
automatically forgotten when a different profile is loaded, so it's not
perfect either.

There is no way to do conditional execution in a .muttrc file based on
the contents of some variable or something, only with hooks (and the
conditional status format expansions).


Hope this helps,
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 /
Today is the last day of your life so far.

Reply via email to