Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78535 - KMail + GnuPG documentation is out of date
Summary: KMail + GnuPG documentation is out of date
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: GNUpg User Guide (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/gnupg-us...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-18 09:59 UTC by Douglas Pollock
Modified: 2005-02-14 06:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for gnupg-user.xml (TEMPFILE,2.37 KB, patch)
2005-02-05 09:16 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch for gnupg-user.xml (TEMPFILE,4.43 KB, patch)
2005-02-07 09:24 UTC, Sven Vermeulen (RETIRED)
Details | Diff
kmail-gnupg.patch (kmail-gnupg.patch,4.76 KB, patch)
2005-02-08 16:02 UTC, Gregorio Guidi (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Pollock 2005-01-18 09:59:03 UTC
The documentation regarding integrating GnuPG and KMail is out of date.  As of version 1.7 of KMail, they've decided to ... er, break things.  This leads to a rather unfortunate situation.

Regardless, the steps listed in this document won't get a user working encryption/decryption.

"http://kmail.kde.org/kmail-pgpmime-howto.html"
"http://bugs.kde.org/show_bug.cgi?id=92619"
"http://bugs.gentoo.org/show_bug.cgi?id=70811"
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-05 09:04:26 UTC
Okay, I've put in a note for the time being, I'll draft up a proposed update for the document and let you know; I can't test it myself though.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-05 09:16:41 UTC
Created attachment 50452 [details, diff]
Patch for gnupg-user.xml

Please review and confirm that this is indeed how it should work. An HTML
version is available at http://dev.gentoo.org/~swift/gnupg-user.html.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-05 09:19:01 UTC
KDE team, is this the new way of dealing with GnuPG under KMail? When is this in effect? Do we need both instructions (those currently in CVS and those mentioned in this bugreport) available for a while?

Do we provide an easier way of dealing with this? For instance, is there a USE flag that will trigger the installation of pinentry? Will the gpg-agent.conf be generated automatically?
Comment 4 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-05 12:03:16 UTC
This is a bit tricky... actually, kmail can decrypt end encrypt "Inline PGP" 
mails, and encrypt "OpenPGP/MIME" mails without a gpg-agent running, but it
cannot decrypt "OpenPGP/MIME" mails without gpg-agent.
Apart from OpenPGP/MIME decryption, all that is needed is that kdepim is 
compiled with gpgme support (it happens if 'crypt' is in USE).

(this is true for both kde-3.3 and kde-3.4, so I think the old instructions 
can be safely removed)

Since the new paragraph you wrote mainly explains how to set up a gpg-agent,
why not turning it into a chapter of its own ("Using gpg-agent")? Something
that explains why it's useful (it can keep your passphrase in memory, you 
can specify how long to keep it, which program to use to retrieve it (typically pinentry...)).

A paragraph should also say: "If you use kde as your desktop environment, you
can automatically start the gpg-agent when the session starts, by editing the
config file /usr/kde/3.x/env/agent-startup.sh".
This is the preferred method, better than editing ~/.xsession (which can stay for other desktop enviroments, maybe?)

Then, a section specifically aimed at kmail can just be reduced to a couple
paragraphs, maybe something like "You should use gpg-agent to exploit all functionalities of kmail..." and not much else.

About what you wrote:
> Now start KMail and go to Settings, Configure KMail, Security, Crypto 
> Backends. You should see a GpgME-based backend listed. If it's listed but 
> grayed out, click on Rescan. Select it and click on OK.

This is not affected by the fact that gpg-agent is running or not, but is a 
good test to see if the crypto backend works well in general.

About gpg-agent and pinentry, see also bug 60809.
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-07 09:24:05 UTC
Created attachment 50627 [details, diff]
Patch for gnupg-user.xml

Second try. This one adds a chapter on GPG Agent
(http://dev.gentoo.org/~swift/gnupg-user.html#gpg-agent, please confirm that
the information is accurate or point me in the right direction if it isn't) and
a small part on KMail configuration.
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-08 16:02:50 UTC
Created attachment 50790 [details, diff]
kmail-gnupg.patch

Thanks for providing the patch. I uses that as a reference and corrected a few 

things. The result is another try, attached here.
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-14 06:26:17 UTC
Thanks for the patch. It's used verbatim in CVS now.