There are no good, maintained C libraries to handle SPF in UNIX.
There is a good Python one.
So, let's port it!
The current status is:
it's ready for testing, but probably not for production use, until it's tested some more.
- It works like PySPF ( no divergences in over 350 tests).
- It's compliant: It passes 100% of the official SPF Test Suite (with two warnings).
- It's memory leak free. Ok, not really, but it has no leaks on any of the over 400 tests it runs. There are a couple of places where it may leak, though.