The go team has deprecated openpgp (see https://github.com/golang/go/issues/44226). Support for smartcards (ref #424) may not be possible in its current state.
I'm down to crank out a patch if it's in line with the project's goals.
I was thinking something like adding this field to the accounts.conf:
pgp_sign_as = <key>
And these to aerc.conf:
pgp_decrypt_cmd = ...
pgp_encrypt_cmd = ...
pgp_sign_cmd = ...
pgp_verify_cmd = ...
Hi, this is now tracked here: https://todo.sr.ht/~rjarry/aerc/6
Your spec seems fine. Please do send a patch to https://lists.sr.ht/~rjarry/aerc-devel