Bug 238109 - Sign message functionality not implemented
Summary: Sign message functionality not implemented
Status: VERIFIED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: HI normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: akonadi-ports-regression
Depends on:
Blocks: 223438
  Show dependency treegraph
 
Reported: 2010-05-19 01:32 UTC by Sabine Faure
Modified: 2010-07-04 20:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Faure 2010-05-19 01:32:31 UTC
Version:            (using Devel)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled sources

- Launch Kmail
- Go to Settings menu/Configure Kmail
- Click on 'Identities'
- Configure an Identity or use an already existing one
- Double click on the identity
- Go to the 'Cryptography' tab and enter both your OpenPGP signing and encryption key.
- Click on 'Ok' twice
- Click on 'New' button
- Go to Options menu/Sign Message
- A 'Message will be signed' line appears under the mail's subject line edit
- Fill in the recipient (your imap account), the subject and a few words in the text editor
- Click on 'Send'
- (No password dialogue is displayed whereas there was one in Kmail 1.13.1)
- The email is sent properly
- Select on it from the recipient's inbox and display its content in the Message viewer

A 'Not enough information to check signature validity' message is displayed at the top of the text editor in yellow background whereas the email should be signed properly and the signature should appear in a green background.

- Select on the message from the recipient's inbox and press 'v'
- in the plain text file you can see the following lines:
--nextPart6042903.nt1UzeQ6ts
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
--nextPart6042903.nt1UzeQ6ts--



Whereas something like this should appear instead:
--nextPart2866487.5fFQMLSfkW
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkvzHtoACgkQ+tIw92utv6aMNQCfc6FFNWgO9oKb528gTssVU8Db
jEAAn1S7HWOFhlIF4aDUCPWpC0SePNCd
=Mxqf
-----END PGP SIGNATURE-----

--nextPart2866487.5fFQMLSfkW--

Trunk, Svn Rev 1128166
Comment 1 Leo Franchi 2010-05-31 20:36:59 UTC
Hi Sabine,

Can you paste the full raw message (what you see in the window after pressing 'v')?

thanks :)
Comment 2 Leo Franchi 2010-05-31 21:40:22 UTC
There should now be more feedback on what the error is, and the email should no longer be sent unsigned.

It is very possible that gpg/gpg-agent is misconfigured on your machine, as i've been having some trouble getting it to work for me too. Can you do the following test to see if it works?

1) Send an encrypted or signed mail to yourself, from a working kmail or some other email client.
2) Copy the part of the email from -----BEGIN PGP MESSAGE-----
 to -----END PGP MESSAGE----- (including both those lines).

3) in a terminal, type "gpg --decrypt"
4) paste the text you copied
5) press control-D. 
6) it should either ask you for your passphrase, or pop up a dialog box asking for your passphrase, or spit out some errors. either fill in the passphrase, and then press control-D (if there are no errors), or paste here the error you see.

thanks!
Comment 3 Leo Franchi 2010-06-08 14:39:15 UTC
Having fixed my local gnupg / gpg-agent configuration, sending signed mails works again. If you continue to experience a bug where trying to send a mail results in kmail showing a "bad passphrase" error and not sending, a misconfigured gpg-agent in your desktop environment is most likely the issue.
Comment 4 Leo Franchi 2010-06-28 19:37:10 UTC
Closing, as i'm 99% sure this is a gpg-agent issue. I've tested signing/encryption on multiple machines and use it day in day out now.
Comment 5 Sabine Faure 2010-07-04 20:45:44 UTC
Indeed I retested this today and it works fine.

The recipient receives the signed email which displays a 'Signed by EmailAddressOftheSender' in a green background message.

Trunk, Svn Rev 1145265

PS: sorry that I did not retest this sooner Leo, I was on holiday when you entered your comments.