<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>src/plugins/user/spamassassin.c</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -95,6 +95,30 @@ AM_CONDITIONAL(BUILD_DSPAM, test &quot;x$BUILD_DSPAM&quot; = &quot;xyes&quot;)
 
 ##############################################################################
 
+AC_ARG_ENABLE([spamassassin], [  --enable-spamassassin=yes|no build spamassassin plugin. default yes.], [BUILD_SPAMASSASSIN=&quot;$enableval&quot;], [BUILD_SPAMASSASSIN=yes])
+case $BUILD_SPAMASSASSIN in
+	no)
+        BUILD_SPAMASSASSIN=no
+	;;
+	*)
+		BUILD_SPAMASSASSIN=yes
+		AC_MSG_CHECKING([whether we can locate the dspam program])
+		spamc=`which spamc 2&gt;/dev/null`
+		if test &quot;x$spamc&quot; = &quot;x&quot;; then
+			echo
+			AC_MSG_ERROR([Could not find spamc in PATH. use --enable-spamassassin=no. or change your PATH])
+		else
+			echo
+			echo Building spamassassin plugin with spamc in $spamc
+			AC_DEFINE_UNQUOTED([SPAMC_BINARY], &quot;$spamc&quot;, [spamassassin enabled])
+		fi
+	;;
+esac
+AM_CONDITIONAL(BUILD_SPAMASSASSIN, test &quot;x$BUILD_SPAMASSASSIN&quot; = &quot;xyes&quot;)
+
+
+##############################################################################
+
 AC_ARG_ENABLE([clamav], [  --enable-clamav=yes|no       build clamav dspam plugin. default yes.], [BUILD_CLAMAV=&quot;$enableval&quot;], [BUILD_CLAMAV=yes])
 case $BUILD_CLAMAV in
 	no)</diff>
      <filename>configure.ac</filename>
    </modified>
    <modified>
      <diff>@@ -12,6 +12,13 @@ dspam_la_LDFLAGS = $(general_LDFLAGS)
 dspam_la_SOURCES = dspam.c
 endif
 
+if BUILD_SPAMASSASSIN
+plugin_LTLIBRARIES += spamassassin.la
+spamassassin_la_CFLAGS = $(general_CFLAGS)
+spamassassin_la_LDFLAGS = $(general_LDFLAGS)
+spamassassin_la_SOURCES = spamassassin.c
+endif
+
 if BUILD_QUARANTINE
 plugin_LTLIBRARIES += quarantine.la
 quarantine_la_CFLAGS = $(general_CFLAGS) -DVQUAD_BINARY=\&quot;$(libexecdir)/vquad\&quot;</diff>
      <filename>src/plugins/user/Makefile.am</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9f99df6a47ffe0cb6b937c8f06114f4d27b64f37</id>
    </parent>
  </parents>
  <author>
    <name>nomius</name>
    <email>nomius@users.berlios.de</email>
  </author>
  <url>http://github.com/nomius/nqqueue/commit/a9ea9a35c2c0d0a01135cb16ed3ce1e8cbb27378</url>
  <id>a9ea9a35c2c0d0a01135cb16ed3ce1e8cbb27378</id>
  <committed-date>2008-08-10T17:23:09-07:00</committed-date>
  <authored-date>2008-08-10T17:23:09-07:00</authored-date>
  <message>Added plugin for spamassassin</message>
  <tree>0a86b2d06012edcd2660859fc869e00f940ced02</tree>
  <committer>
    <name>nomius</name>
    <email>nomius@users.berlios.de</email>
  </committer>
</commit>
