Bug 5409 - Pure Java spamc client
Summary: Pure Java spamc client
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
Whiteboard: Pending CLA for consideration of non-...
Depends on:
Reported: 2007-04-06 18:11 UTC by Nick Radov
Modified: 2013-01-28 13:42 UTC (History)
2 users (show)

Attachment Type Modified Status Actions Submitter/CLA Status
org.apache.spamassassin.spamc.Spamc text/plain None Nick Radov [NoCLA]

Note You need to log in before you can comment on or make changes to this bug.
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]

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.