FS#56741 - [neomutt] Fails to find pgpewrap during encryption

Attached to Project: Community Packages
Opened by Alexander Lehmann (afwlehmann) - Saturday, 16 December 2017, 12:16 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 15 December 2018, 15:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Alad Wenter (Alad)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
After upgrading to neomutt 20171208-1, encryption fails because `pgpewrap` cannot be found.

Additional info:
`pgpewrap` resides inside /usr/lib/neomutt.

Steps to reproduce:
* Compose mail
* Before sending, set up mail to be encrypted and/or signed
* Try to send
* Encryption fails with "sh: pgpewrap: command not found"
This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 15 December 2018, 15:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  20180716-5
Comment by Alad Wenter (Alad) - Saturday, 16 December 2017, 19:04 GMT
Please attach your gpg.rc or other muttrc files containing gpg settings. The correct setting for encryption should be:

set pgp_encrypt_only_command="/usr/lib/neomutt/pgpewrap gpg --batch --quiet --no-verbose --output - --textmode --armor -- --recipient %r -- --encrypt %f"
Comment by Alexander Lehmann (afwlehmann) - Sunday, 17 December 2017, 11:20 GMT
Ah, thanks. I had taken my configuration from [1] where the directory itself is omitted (cf. "The CodeSourcery method of Mutt setup and explanation
"). That setup has been working for quite some time also for neomutt, but I see why your proposed configuration is better. Thanks for taking the time, I'll go ahead and adapt my config.

[1] https://dev.mutt.org/trac/wiki/MuttGuide/UseGPG
Comment by Alexis Praga (Edoin) - Sunday, 30 September 2018, 04:04 GMT
  • Field changed: Percent Complete (100% → 0%)
I would like to re-open it as the gpg.rc shipped with neomutt as an example has a wrong location for pgpewrap.

The following patch works :
--- /home/alex/Downloads/PKGBUILD 2018-09-23 15:39:11.512858781 +0200
+++ PKGBUILD 2018-09-23 15:38:28.864114028 +0200
@@ -19,6 +19,12 @@
'SKIP')
validpgpkeys=('86C2397270DD7A561263CA4E5FAF0A6EE7371805') # Richard Russon (flatcap) <rich@flatcap.org>

+# Wrong pgpewrap location in archlinux
+prepare() {
+ cd "$pkgname-$pkgname-$pkgver"
+ sed -i".bak" 's/libexec\/neomutt\/pgpewrap/lib\/neomutt\/pgpewrap/' contrib/gpg.rc
+}
+
build() {
cd "$pkgname-$pkgname-$pkgver"
./configure \

Thank you
Comment by Jelle van der Waa (jelly) - Monday, 03 December 2018, 13:07 GMT

Loading...