dkim_policy() used to return a dkim_policy_t which I found useful in my application for logging and diagnostics.
The way it is in 2.x makes more sense in that it is a black box function that returns an indication of success and does the policy determination internally but is there any possibility of making the retrieved policy available to applications again?
Either as an additional PBR parameter or have it stored in the dkim context and retrieved by a new function after dkim_policy()? For diagnostic purposes it would also be very useful to know the test number that made the final decision (as per ietf-dkim-ssp-00 4.4 currently)..
status = dkim_policy(ref, &test, &susp);
policy = dkim_policy_result(ref, &stage);
Something like the attached patch (against 2.1.0beta1)
Thanks for considering this, if this functionality can be integrated it minimises the additional patching I need to do.
Log in to post a comment.