Thanks to visit codestin.com
Credit goes to github.com

Skip to content

INV_RECP status code support request #208

@leifliddy

Description

@leifliddy

It would be really useful if we could see the actual INV_RECP status messages vs simply displaying the generic invalid recipient message.

  elif key == 'INV_RECP':  # pragma: no cover
      self.status = 'invalid recipient'

The status codes + messages can be found here:
https://github.com/gpg/gnupg/blob/master/doc/DETAILS#inv_recp-inv_sgnr

I'm working on a project and it would insanely useful for me to see these status messages returned. Without the always-trust arg, a key needs to be ultimately trusted in order to encrypt something....and If the result status returned is Key not trusted (which corresponds to INV_RECP 10) then I know exactly what the issue is and how to handle it.

DEBUG:gnupg:[GNUPG:] KEY_CONSIDERED 8D2D438B13429DAA19AD116EBCC794837416F045 0
DEBUG:gnupg:[GNUPG:] KEY_CONSIDERED 8D2D438B13429DAA19AD116EBCC794837416F045 0
DEBUG:gnupg:gpg: BCFDACAB3D66F4CE: There is no assurance this key belongs to the named user
DEBUG:gnupg:[GNUPG:] INV_RECP 10 [email protected]
DEBUG:gnupg:[GNUPG:] FAILURE encrypt 53

I could implement this change if you want, but I'm pretty sure have your own way of doing things. There's only 15 status codes, so it shouldn't take a ridiculous amount of effort.

Also, I really want to thank you for maintaining such a cool and useful project!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions