Re:Sequoia-PGP – A new OpenPGP implementation in Rust
by klodolph on Thursday August 02, 2018 @09:08AM
(#17671101)
Yes, more people should know about the --status-fd option. I only wish there were a version that gave JSON output or something a little more foolproof to parse, the record syntax is easy to analyze with sed/awk/etc but you have to look up the docs for the meaning of each field and I wonder about the quoting sometimes.
The magic you are missing is `--quiet --status-fd 1`, then look for ENC_TO lines - the documentation can be found in https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;...
Based on my testing this works with gnupg 2.1 and 2.2, so I think it should help with your problem.