[Mimedefang] Minor patches for 2.63

David F. Skoll dfs at roaringpenguin.com
Tue Aug 14 21:12:44 EDT 2007


Hi,

Unfortunately, the sample init scripts for 2.63 have minor bugs.
The patches below are recommended.

(Off-topic: We've recently switched from Subversion to "git" for
revision control, and it's really cool.  These patches were
"cherry-picked" from the main development branch to the 2.63-branch.
git makes this kind of thing really easy.)

Regards,

David.

diff --git a/examples/init-script.in b/examples/init-script.in
index 1c52641..9fdf4e1 100755
--- a/examples/init-script.in
+++ b/examples/init-script.in
@@ -243,7 +243,7 @@ start_it() {
 	`[ "$MX_RECIPIENT_CHECK" = "yes" ] && echo "-t"` \
 	`[ "$KEEP_FAILED_DIRECTORIES" = "yes" ] && echo "-k"` \
 	`[ "$MD_EXTRA" != "" ] && echo $MD_EXTRA` \
-	`[ "$MD_SKIP_BAD_RCPTS" = "yes" ] && echo "-N" \
+	`[ "$MD_SKIP_BAD_RCPTS" = "yes" ] && echo "-N"` \
 	`[ "$ALLOW_NEW_CONNECTIONS_TO_QUEUE" = "yes" ] && echo "-q"` \
 	-p $SOCKET
     RETVAL=$?
diff --git a/redhat/mimedefang-init.in b/redhat/mimedefang-init.in
index b496001..82a139d 100644
--- a/redhat/mimedefang-init.in
+++ b/redhat/mimedefang-init.in
@@ -160,7 +160,7 @@ start() {
 
 configtest () {
     echo -n "Checking filter syntax: "
-    mimedefang.pl $([ -n "$SUBFILTER" ] && echo "-f $SUBFILTER") -test > @SPOOLDIR@/configtest.out 2>&1
+    $PROGDIR/mimedefang.pl $([ -n "$SUBFILTER" ] && echo "-f $SUBFILTER") -test > @SPOOLDIR@/configtest.out 2>&1
     if [ $? != 0 ] ; then
 	echo "FAILED."
 	echo ""



More information about the MIMEDefang mailing list