On Thu, Aug 19, 2021 at 02:08:32PM +1000, Adrian Martinez wrote:
>Hi!
>
>Thanks for creating your SPF library, it has been super handy.
I'm happy to hear that!
>I have a use-case where on top of the SPF result, I'd like to know why the
>result occurred. For example, given a result I'd want to distinguish
>whether it was due to exceeding lookup depth, missing config etc.
>
>This can be found currently by inspecting the error string (because the
>error definitions are private), but that approach isn't resilient to
>changes in the library's error messages.
>
>Are you open to making those error definitions public? Happy to submit a PR
>if this is the case.
I am, and thanks for offering to send a PR!
I think it's something we need to implement carefully, to make sure it's
reasonably future proof. But it's a reasonable request and I'm sure we
can find a way, I have a couple of ideas as well.
I'm going to be with limited connectivity for the next 10 days or so,
but am happy to look into this when I come back.
Thanks a lot again,
Alberto