On Fri, Jul 24, 2020 at 06:03:54PM +0300, fox.cpp wrote:
>Only first pattern was anchored. This created mismatches
>if "a:", "mx:", "ptr:" are contained within rule.
>"a:" is possible in IPv6 addresses, exp= use (or any rule that permits
>arbitrary strings) may lead to such mismatch as well.
Thanks a lot for finding this and sending a patch!
Merged (amended with some tests):
https://blitiri.com.ar/git/r/spf/c/67a432adc6658d28cb0009da0c394c3355ca63ea/
I also just tagged v1.1.1 which includes this fix.
Thanks again,
Alberto