* Rahul Rekapalli <[EMAIL PROTECTED]> [2002-06-24 14:13]:
> I would like to know how i can edit the alias file from inside mutt.

you don't.  you cannot.  mutt is not an editor.
and mutt is not an address database, either.

the command create-alias appends an alias
definition to your $alias_file - but that's it.

everything else you can do with your editor.
just suspend mutt (with CTRL-Z) and use your editor.
after that, put mutt back into the foreground ("fg") and
read in the changed $alias_file with ":source filename".

it's the unix way.  works for me.  :-)

and then there are addresses databases
which you can query from within mutt,
eg with the $query_command.

anyway, if you need this inside of your mailer
then you had better use some other mailer, eg pine.

> also, is there any way to select and take all the email
> addresses that appear in a mail and add it to my
> alias one by one rather than adding only the sender.

no - there is no "import-all-addresses" in mutt.

just pipe the message to a script which does that.
something like this might suffice:

  egrep -i '^(to|cc): ' >> $HOME/.mutt.aliases

the rest is up to you.  you will have to
come up with the alias names yourself, anyway.

> I have prevented gpg from retrieving the public key
> of a user automatically. can i manually retrieve
> the key using some shortcut from inside mutt.

no - i dont think there is such a command.
after all this functionality
is given with gpg and pgp.

you can bind any key to a shell-escape
which then calls some shell script:

macro index #X  "<shell-escape>script\n"

the rest is up to you.

Sven

-- 
Sven Guckes               [EMAIL PROTECTED]
use     "lists address"   when you are *not* subscribed
use "subscribe address"   when you   *are*   subscribed
-> http://www.math.fu-berlin.de/~guckes/mutt/setup.html

Reply via email to