Bug 985599

Summary: Sending GPG signed mail in Evolution fails with "Failed to execute gpg"
Product: [Fedora] Fedora Reporter: Andrew Blum <ablum>
Component: evolutionAssignee: Matthew Barnes <mbarnes>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: lucilanga, mbarnes, mcrha, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: evolution-data-server-3.8.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-18 09:41:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
security configuration from within evolution
none
failure message when sending GPG signed mail none

Description Andrew Blum 2013-07-17 20:39:12 UTC
Description of problem:
When trying to send GPG signed mail in Evolution, the message fails to send with the error:

'Could not create message.  Because 'Fail to execute gpg.", you need to select different mail options.

Version-Release number of selected component (if applicable):
evolution-3.8.3-2.fc19.x86_64
gnupg2-2.0.19-8.fc19.x86_64

How reproducible:
Every time mail is sent.

Steps to reproduce:
Configure Security using an imported OpenPGP Key ID and make sure mail is being sent that is being sent.  (See evolution-security-config.png) 

Actual results:
The attached screen shot (evolution-send-fail.png).

Expected results:
Mail signed with GPG sends successfully.

Additional info:
Workaround for this issue is to create a softlink for gpg that points to the gpg2 binary:

# ln -s /bin/gpg2 /bin/gpg

After adding this softlink, evolution sends GPG signed mail successfully.

Comment 1 Andrew Blum 2013-07-17 20:40:45 UTC
Created attachment 774956 [details]
security configuration from within evolution

Comment 2 Andrew Blum 2013-07-17 20:42:51 UTC
Created attachment 774966 [details]
failure message when sending GPG signed mail

Comment 3 Tomas Mraz 2013-07-18 09:26:52 UTC
I think evolution should try running gpg first and if not found try to running gpg2.

The symlink cannot be provided by gnupg2 package in Fedora because it would conflict with the gnupg-1 package.

Comment 5 Milan Crha 2013-07-18 09:41:33 UTC
Thanks for a bug report. I fixed this upstream with commit b2340c6 for master (3.9.5+) and commit 2fd1053 for gnome-3-8 (3.8.4+). The change makes the CamelGpgContext check for proper executable name and use it.