-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a build.xml and a README.txt to the root (JSPF-19)
git-svn-id: https://svn.apache.org/repos/asf/james/jspf/trunk@420794 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Stefano Bagnara
committed
Jul 11, 2006
1 parent
3481cc7
commit 4156232
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Welcome to Apache James jSPF | ||
============================ | ||
|
||
Apache James jSPF is an Apache 2.0 licensed java library that implements the SPF specification. | ||
|
||
There are 2 main entry points to the library: | ||
1) The SPFQuery command line tool | ||
2) The SPF class, for programmatic use | ||
|
||
|
||
SPFQuery | ||
-------- | ||
You need jspf library, dnsjava and log4j libraries in your classpath, then you run | ||
> java -jar jspf-version.jar | ||
to get the usage. | ||
|
||
|
||
SPF | ||
--- | ||
Here is a simple usage of the library: | ||
|
||
SPF spf = new SPF(new DNSServiceXBillImpl ()); | ||
SPFResult res = spf.checkSPF("192.168.0.1", "from@example.com", "example.com"); | ||
if (res.getResult().equals(SPF1Utils.FAIL_CONV)) { | ||
... do something ... | ||
} else if (res.getResult().equals(SPF1Utils.PASS_CONV)) { | ||
... something else.. | ||
} else ..... | ||
Further results are: | ||
|
||
PERM_ERROR_CONV = "error"; | ||
NONE_CONV = "none"; | ||
TEMP_ERROR_CONV = "temperror"; | ||
PASS_CONV = "pass"; | ||
NEUTRAL_CONV = "neutral"; | ||
FAIL_CONV = "fail"; | ||
SOFTFAIL_CONV = "softfail"; | ||
|
||
|
||
Links | ||
----- | ||
http://new.openspf.org/ for the latest informations about SPF | ||
http://james.apache.org/jspf/ for the jSPF website, javadocs, xdocs and more. | ||
|
||
|
||
Please help us make jSPF better - we appreciate any feedback you may have. | ||
Enjoy! | ||
|
||
--------------------- | ||
The Apache James team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters