Bug 985599 - Sending GPG signed mail in Evolution fails with "Failed to execute gpg"
Sending GPG signed mail in Evolution fails with "Failed to execute gpg"
Product: Fedora
Classification: Fedora
Component: evolution (Show other bugs)
x86_64 Linux
unspecified Severity low
: ---
: ---
Assigned To: Matthew Barnes
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-07-17 16:39 EDT by Andrew Blum
Modified: 2013-07-18 05:41 EDT (History)
4 users (show)

See Also:
Fixed In Version: evolution-data-server-3.8.4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-18 05:41:33 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
security configuration from within evolution (59.92 KB, image/png)
2013-07-17 16:40 EDT, Andrew Blum
no flags Details
failure message when sending GPG signed mail (33.69 KB, image/png)
2013-07-17 16:42 EDT, Andrew Blum
no flags Details

  None (edit)
Description Andrew Blum 2013-07-17 16:39:12 EDT
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):

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 16:40:45 EDT
Created attachment 774956 [details]
security configuration from within evolution
Comment 2 Andrew Blum 2013-07-17 16:42:51 EDT
Created attachment 774966 [details]
failure message when sending GPG signed mail
Comment 3 Tomas Mraz 2013-07-18 05:26:52 EDT
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 05:41:33 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.