From kmail-devel Thu Oct 24 23:36:02 2002
From: Marc Mutz KMail has long been criticized for it's lack of
"compatible" OpenPGP/MIME support. Not any longer! KMail 1.5
and the Ägypten
Project make OpenPGP/MIME available to KMail users. You need KDE 3.1 (a Beta version suffices) and GnuPG 1.0.7 or
1.2.x. You should be able to get those in pre-compiled form from your
distribution vendor. You'll find all the gory details on the development
page of the Ägypten Project. Here, we concentrate on a
minimal install that gives you only the OpenPGP part of
Ägypten. First, get the following packages (min. version in (parantheses))
Using OpenPGP/MIME with KMail
Prerequisites
Installing Ägypten
and unpack them in a directory with tar xfz file.tar.gz
.
Now, compile and install them (note that you need much stuff here
only to make newpg's configure
script happy):
cd libgcrypt && ./configure --enable-maintainer-mode && make && su -c "make install" cd libksba && ./configure --enable-maintainer-mode && make && su -c "make install" cd newpg && ./configure --enable-maintainer-mode && make && cd gpg-agent && su -c "make install" cd gpgme && ./configure --enable-maintainer-mode --enable-gpgmeplug && make && su -c "make install" cd pinentry && ./configure --enable-maintainer-mode && make && su -c "make install"
That's it!
If you updated gpg
from 1.0.6 or earlier, please make
sure to set your own key to ultimate trust yourself and run
gpg --rebuild-keydb-caches
Add this to your ~/.gnupg/option
(GnuPG 1.0.7) or ~/.gnupg/gpg.conf
(GnuPG 1.2.x):
use-agent
Add a file ~/.gnupg/gpg-agent.conf
with the following contents:
pinentry-program /usr/local/bin/pinentry-gtk no-grab default-cache-ttl 1800(replace the path to
pinentry-gtk
depending on the prefix
you gave to the ./configure
above). pinentry-qt
might also work, but
pinentry-gtk
is confirmed to work.
Before using gpg
, you need to start gpg-agent
:
eval "$(gpg-agent --daemon)"(
gpg-agent
outputs a little shell script that sets the
environment variable GNUPG_AGENT_INFO
). You may want to
add this to your ~/.xsession
so that all programs see the
environment variable.
Make sure you can work with gpg
on the command line
(should use gpg-agent
and pinentry-gtk
).
Configure KMail's GnuPG support until it works for you (KMail from
older betas will not be aware of gpg-agent
running, so it
will ask for a passphrase itself. Enter a bogus one and hit OK, then
pinentry
will come up to ask for the passphrase).
Start KMail, go to Settings->Configure
Kmail->Security->Crypto Plugins and add the
gpgme-openpgp.so
plugin. Leave the update URL empty and
set a name of OpenPGP.
You should now be able to choose the OpenPGP plugin for signing/encrypting in KMail's composer.
--Boundary-01=_kPIu9T4sZeQu3m3-- --Boundary-03=_lPIu9pAV/uS6+Y0 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQA9uIPl3oWD+L2/6DgRAuNUAJ9SGAiAgIVvIsajPVYPS2UirsSNrACgj/g+ cH2BYwK4dI07uBo+NU14Ma4= =kTdS -----END PGP SIGNATURE----- --Boundary-03=_lPIu9pAV/uS6+Y0-- _______________________________________________ KMail Developers mailing list kmail@mail.kde.org http://mail.kde.org/mailman/listinfo/kmail