RaSPF: A C SPF library
RaSPF is a C port of the excellent PySPF Python library.
RaSPF aims to be:
Compliant to the SPF RFC and ammendments.
For that goal, I am making extensive use of test suites, and right now it passes all the tests in the official SPF test suite, and has no divergences with PySPF in over 300 tests.
I am making extensive use of tools like Valgrind, and libraries to handle dictionaries and strings, trying to avoid the common pitfalls of C.
Once the first two goals are achieved, this one should be easy, since only tracking standard changes will be necessary.
Responsive to user requests.
You have a problem? Please let me know! I want people to use RaSPF, and I want it to be GOOD. Please use the Google issue tracker for the project.
I will happily give SVN write access to anyone who asks for it and shows his mettle with a patch for an outstanding issue.
This is the weakest point right now, and the next thing to be attacked after compliance is achieved.
You can help by doing things in the Google Wiki of the project.
The code is under the Python License, which is a MIT/BSD style license. However, I am using EXCC which is under the GPL. That makes the whole library GPL for all practical purposes. The EXCC author is investigating relicensing, so this problem should go away soon.
Right now, don't use RaSPF on anything that's not GPL.
You have two choices:
Use the spf_check function. Read the raspfquery sources for an example.
Use the spf_query object and all the spf_query_* functions. The API is similar to PySPF's.
You need a C compiler and CMake
Enter the sources folder, and run
At the moment, there is no official release, until the SPF test suite is passed. I don't intend to encourage use of non-compliant software.
However, for testing purposes, you can use the SVN code at the Source Page at google code.