Changelog
+* add CHARSET config option for mailing scripts (21 Feb 2006)
* use To-Company and To-Name coverpage entries in the notification
message if they are available to use (21 Feb 2006)
* add support for libtiff-3.8 (31 Jan 2006)
CHOWN
CC
CCOMPILER
+CHARSET
CMP
COL
CP
PATH=$PATH:$OPATH
POSIXLY_CORRECT=1; export POSIXLY_CORRECT # disable GNU extensions
+
+#
+# Check for locale settings before setting LC_ALL.
+#
+CHARSET=`(locale -c LC_MESSAGES | tail -n 1)`
+if test X$CHARSET = X; then
+ CHARSET=us-ascii
+fi
+
LC_ALL=C; export LC_ALL # set a common language
#
AWK=@AWK@ # awk for use below
CAT=@CAT@ # cat command for use below
+CHARSET=@CHARSET@ # character set to use in e-mails
CHGRP=@CHGRP@ # change file group for use below
CHMOD=@CHMOD@ # change file mode for use below
CHOWN=@CHOWN@ # change file owner for use below
AWK
BIN DIR_BIN
CAT
+CHARSET
CHGRP
CHMOD
CHOWN
MIMENCODE=mimencode
TIFF2PDF=bin/tiff2pdf
TTYCMD=tty
+CHARSET=us-ascii
. etc/setup.cache
*) NOTIFY_FAXMASTER=yes;;
esac
if [ "$TOADDR" != "$SENDTO" -a "$NOTIFY_FAXMASTER" != "no" ]; then
- (echo "To: $TOADDR"
+ (echo "Mime-Version: 1.0"
+ echo "Content-Type: text/plain; charset=$CHARSET"
+ echo "Content-Transfer-Encoding: quoted-printable"
+ echo "To: $TOADDR"
echo "From: The HylaFAX Receive Agent <$FROMADDR>"
echo "Subject: Facsimile received from $SENDER";
echo ""
echo "Subject: Facsimile received from $SENDER";
echo ""
echo "--$MIMEBOUNDARY"
- echo "Content-Type: text/plain; charset=us-ascii"
- echo "Content-Transfer-Encoding: 7bit"
+ echo "Content-Type: text/plain; charset=$CHARSET"
+ echo "Content-Transfer-Encoding: quoted-printable"
echo ""
$INFO -n $FILE
echo "ReceivedOn: $DEVICE"
MIMENCODE=mimencode
TIFF2PDF=bin/tiff2pdf
TTYCMD=tty
+CHARSET=us-ascii
. etc/setup.cache
echo "This is a multi-part message in MIME format."
echo ""
echo "--$MIMEBOUNDARY"
- echo "Content-Type: text/plain; charset=us-ascii"
- echo "Content-Transfer-Encoding: 7bit"
+ echo "Content-Type: text/plain; charset=$CHARSET"
+ echo "Content-Transfer-Encoding: quoted-printable"
echo ""
}
MIMENCODE=mimencode
TIFF2PDF=bin/tiff2pdf
TTYCMD=tty
+CHARSET=us-ascii
. etc/setup.cache
echo "Subject: Facsimile retrieved from $SENDER";
echo ""
echo "--$MIMEBOUNDARY"
- echo "Content-Type: text/plain; charset=us-ascii"
- echo "Content-Transfer-Encoding: 7bit"
+ echo "Content-Type: text/plain; charset=$CHARSET"
+ echo "Content-Transfer-Encoding: quoted-printable"
echo ""
echo "$FILE (ftp://$HOSTNAME:$PORT/$FILE):"; $INFO -n $FILE
echo "ReceivedOn: $DEVICE"