-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 19-Jul-2002/12:28 -0500, Gary <[EMAIL PROTECTED]> wrote:
[snip]
> It is really stupid to use this old outdated method. 

Except that more mailers can handle inline OpenPGP messages. The ones that
don't can be easily worked around using copy/paste.

Setting up mutt to send/receive inline OpenPGP messages was not difficult.
The hardest part was finding the info I needed to do it.

I use vim as my mailer, so I added this line to ~/.muttrc:

  set editor="/usr/bin/vim -N -s $HOME/.vimrc-mail"

My ~/.vimrc-mail conmtains some settings for editing mail, and a few for
easily calling GPG from within vim:

  :set tw=74
  :set fo=tcq
  :cmap cs %!gpg --clearsign
  :cmap es %!gpg -seat -r 
  :cmap ee %!gpg -eat -r 
  :set background=dark
  :set syntax=mail
  :syntax on

The first two lines handle wrapping. The next three lines create macros
that call GPG to process the text. To clearsign a message from within vim,
I use:

  [Esc] :cs [Enter]

...then enter my passphrase. The text is signed and loaded into vim. I can
clear the display using [Ctrl]+[L] or undo the GPG operation using [u].
Then I save and exit: [ZZ].

To have mutt properly handle incoming inline OpenPGP messages, I added a
filter to the top of my ~/.procmailrc that changes the MIME type on inline
OpenPGP messages so that mutt will know that it needs to call GPG to
handle them:


# Change the MIME type of text/plain inline OpenPGP messages to
# automate handling by mutt.
:0
* ^Content-Type: text/plain
{
        :0 fBw
        * ^-----BEGIN PGP MESSAGE-----
        * ^-----END PGP MESSAGE-----
        | formail \
            -i 'Content-Type: application/pgp; format=text;
x-action=encrypt'

        :0 fBw
        * ^-----BEGIN PGP SIGNED MESSAGE-----
        * ^-----BEGIN PGP SIGNATURE-----
        * ^-----END PGP SIGNATURE-----
        | formail \
            -i 'Content-Type: application/pgp; format=text; x-action=sign'
}






Tony
- -- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]%3E>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene <mailto:[EMAIL PROTECTED]> 0x6C94239D

iD8DBQE9O5pWpCpg3WyUI50RApmbAKDoKRWiqKlmpJBb5TVskXPnBaWI5QCg6fDx
+gI7JEQjHBcOyvLaludW9uA=
=ZVUu
-----END PGP SIGNATURE-----



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to