From: mortenp Date: Sun, 17 Jun 2007 20:37:35 +0000 (+1000) Subject: Added --enable-recieve-strip configure option (Ansgar Burchardt) X-Git-Tag: RELEASE_1_2_15_RC1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9896b7fc0dfc60f09ee59ede87d12d18147df9d;p=thirdparty%2Fmlmmj.git Added --enable-recieve-strip configure option (Ansgar Burchardt) --- diff --git a/ChangeLog b/ChangeLog index 89afe58f..478b3477 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + o Added --enable-recieve-strip configure option (Ansgar Burchardt) o Added unicode support to listtexts o Fixed build outside the source directory (Ansgar Burchardt) o Moved English listtexts and install all languages (Ansgar Burchardt) diff --git a/README b/README index 981aa54a..0b5a0bbc 100644 --- a/README +++ b/README @@ -29,6 +29,10 @@ To use mlmmj, do the following: $ ./configure && make && make install + If you want to filter multipart/mime messages, pass the option + --enable-recieve-strip to configure, and take a look at + contrib/recievestrip/README. + 1) Configure a recipient delimiter. The default is to use '+', and in Postfix it's done by adding diff --git a/configure.ac b/configure.ac index 8449b099..289648df 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,11 @@ exec_prefix=$savex AC_SUBST(textlibdir) +AC_ARG_ENABLE([recieve-strip], + AS_HELP_STRING([--enable-recieve-strip], + [build mlmmj-recieve-strip (default is no)])) +AM_CONDITIONAL(WANT_RECIEVESTRIP, test x"$enable_recieve_strip" = xyes) + # Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([ftruncate memset socket strerror strncasecmp snprintf fcntl]) diff --git a/contrib/recievestrip/Makefile.am b/contrib/recievestrip/Makefile.am index 94bb9e41..e672edb5 100644 --- a/contrib/recievestrip/Makefile.am +++ b/contrib/recievestrip/Makefile.am @@ -5,7 +5,9 @@ AUTOMAKE_OPTIONS = foreign AM_CFLAGS = -g -Wall -pedantic -Wsign-compare -DDEFAULTTEXTDIR='"@textlibdir@"' INCLUDES = -I$(srcdir)/../../include -noinst_PROGRAMS = mlmmj-recieve-strip +if WANT_RECIEVESTRIP + bin_PROGRAMS = mlmmj-recieve-strip +endif mlmmj_recieve_strip_SOURCES = mlmmj-recieve-strip.c ../../src/mygetline.c ../../src/memory.c ../../src/readn.c \ ../../src/strgen.c ../../src/random-int.c ../../src/log_error.c ../../src/print-version.c \ diff --git a/src/Makefile.in b/src/Makefile.in index 9be13f03..3181c983 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -79,6 +79,8 @@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ +WANT_RECIEVESTRIP_FALSE = @WANT_RECIEVESTRIP_FALSE@ +WANT_RECIEVESTRIP_TRUE = @WANT_RECIEVESTRIP_TRUE@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@