SA Bugzilla – Bug 5409
Pure Java spamc client
Last modified: 2022-04-16 05:38:15 UTC
It would be useful to have a pure Java spamc client that can communicate with a spamd server. For mail programs that are written in Java it is easier to call another Java class rather than launching an external process. I went ahead and wrote a basic client for use on another project, but I would like to have it eventually considered for inclusion in the standard SpamAssassin distribution. I will attach a file with the source code so that anyone can try it out and report problems.
Created attachment 3898 [details] org.apache.spamassassin.spamc.Spamc revision 1
It's very useful! I found a bug. ping function has bug. got IllegalArgumentException should add coundition like if (!command.equals(Commands.PING) && message == null) { throw new IllegalArgumentException("Message contents not set"); }
It's nice to hear this is useful. Perhaps something good for a contribs dir with a caveat empor warning that it's not project maintained? We would need a CLA from Nick Radov to consider this, though. See http://www.apache.org/licenses/#clas for more information.
If it's not project maintained, then it does not belong in the project. Contrib makes no difference, what happens when it needs a security update etc? Third party stuff should be on github etc, closing.