[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] zmailer script patch
- To: zmailer@nic.funet.fi
- Subject: [PATCH] zmailer script patch
- From: Ambrose Li <a.c.li@ieee.org>
- Date: Tue, 23 Mar 2004 02:11:49 -0500
- Mail-Followup-To: Ambrose Li <a.c.li@ieee.org>, zmailer@nic.funet.fi
- Original-Recipient: rfc822;zmailer-log@nic.funet.fi
- Sender: zmailer-owner@nic.funet.fi
- User-Agent: Mutt/1.2.5i
Hi,
in ZMailer 2.99.56, if I configure smtpserver for multihoming
(by making smtpserver.conf a directory), smtpserver won't
start if the directory contains directories (such as "RCS").
The following patch should fix this (if it is not already
fixed in CVS):
------------ cut here ------------------ 8< ------------------
--- zmailer 2004/01/28 20:50:27 1.1
+++ zmailer 2004/03/23 06:39:47
@@ -190,12 +190,18 @@
fi
cd $MAILSHARE/smtpserver.conf
for serv in *; do
- SMTPOPTIONS_SAVE=$SMTPOPTIONS
- if [ -f .$serv ]; then
- SMTPOPTIONS=`eval echo \`cat .$serv\``
- fi
- smtpserver $setZCONFIG $SMTPOPTIONS -C $serv -I .pid.smtpserver/$serv
- SMTPOPTIONS=$SMTPOPTIONS_SAVE
+ if [ -f "$serv" ]; then # not CVS, RCS, etc.
+ case "$serv" in
+ *,v) ;;
+ *) # not *,v either, ok
+ SMTPOPTIONS_SAVE=$SMTPOPTIONS
+ if [ -f .$serv ]; then
+ SMTPOPTIONS=`eval echo \`cat .$serv\``
+ fi
+ smtpserver $setZCONFIG $SMTPOPTIONS -C $serv -I .pid.smtpserver/$serv
+ SMTPOPTIONS=$SMTPOPTIONS_SAVE
+ esac
+ fi
done
fi
;;
------------ cut here ------------------ 8< ------------------
Best regards,
--
Ambrose LI Cheuk-Wing <a.c.li@ieee.org>
http://ada.dhs.org/~acli/
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi