Bug 5409

Summary: Pure Java spamc client
Product: Spamassassin Reporter: Nick Radov <nradov>
Component: spamc/spamdAssignee: SpamAssassin Developer Mailing List <dev>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: apache, junho85, kmcgrail
Priority: P5    
Version: unspecified   
Target Milestone: Undefined   
Hardware: All   
OS: All   
Whiteboard: Pending CLA for consideration of non-maintained contribs dir.
Attachments: org.apache.spamassassin.spamc.Spamc

Description Nick Radov 2007-04-06 18:11:02 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.
Comment 1 Nick Radov 2007-04-06 18:13:04 UTC
Created attachment 3898 [details]
org.apache.spamassassin.spamc.Spamc

revision 1
Comment 2 Kim JunHo 2013-01-27 09:42:53 UTC
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");
}
Comment 3 Kevin A. McGrail 2013-01-28 13:42:31 UTC
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.
Comment 4 Henrik Krohns 2022-04-16 05:38:15 UTC
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.