observations on kmail with gnupg support
Stefan Fiedler <[email protected]> Fri, 20 Jan 2006 10:58:40 +0100
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, here are some things I noticed while trying to get gpg cryptography support in kmail working, that would otherwise be left unnoted. Requirements for "Using OpenPGP and PGP/MIME with KMail >= 1.7" are listed in http://kmail.kde.org/kmail-pgpmime-howto.html. As Raphael already mentioned, from the section "Configure GnuPG to use gpg-agent" in this howto only starting the gpg-agent is strictly required for gpg support in kmail. Configuration options in ~/.gnupg/gpg.conf and ~/.gnupg/gpg-agent.conf are not required. Options in gpg-agent.conf can be changed via kmail's settings. If the line use-agent is used in gpg.conf, gpg will use the gpg-agent whenever possible. That is, gpg run 'inside' an X server will use a gui, and run from a text console will use the usual text input when asking for a passphrase. if 'use-agent' is not set in gpg.conf, then gpg will always use text input for that, only kmail will use a gui input widget. Btw. there's already a lengthy bug report about the strict dependency of kmail on gpg-agent for decryption at http://bugs.kde.org/show_bug.cgi?id=92619. A patch for full gpg support in kmail is here: https://www.rocklinux.net/submaster/smadm.cgi?i=2006012001103700949. It places the gpg-agent start command in the global config file /etc/opt/kde3/env/gpg-agent.sh, so gpg-agent is always enabled when KDE is running. I made this config file a part of kdepim because it's only useful together with KDE: only startkde will automatically source this file. There are no further checks for the availability of gpg-agent, because gnupg2 is strictly required for kmail gpg support anyway. Have fun! Stefan Fiedler