When generating new PGP key pair from within Claws Mail (e.g. "Generate new keypair" button in account preferences), the application asks for a passphrase twice, but this passphrase is then ignored by gpg2, which displays its own passphrase dialog, using pinentry. This works fine when gpg 1.x (1.4.20 in my case) is forced on Claws Mail.
Changes related to this bug have been committed. Please check latest Git and update the bug accordingly. You can also get the patch from: http://git.claws-mail.org/ ++ ChangeLog 2016-07-13 21:53:02.855122722 +0200 http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=55c93fe55aa02038aaae215bbb5352ae5ba79a3a Merge: d9012f8 5e02bd9 Author: Colin Leroy <colin@colino.net> Date: Wed Jul 13 21:53:02 2016 +0200 Merge branch 'master' of file:///home/git/claws http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=5e02bd982ab0505bd75ffb17718e7750d7e2865f Author: Andrej Kacian <ticho@claws-mail.org> Date: Wed Jul 13 21:50:52 2016 +0200 When generating a PGP keypair, only ask for passphrase with gpg1. Also erase all copies of an entered passphrase from memory when done. Closes bug #3658.