HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Fw: Notify
Max Mothwurf wrote:
Sounds like a code page problem to me. If I look what I receive from hylafax,
the dates in the mail-header are:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
So, no surprise the the special characters diappear.
Can we change the settings somewhere to
Content-Type: text/plain; charset=iso8859-15
Content-Transfer-Encoding: quoted-printable
(or something similar)
Try the attached patch. It will allow you to set "CHARSET=iso8859-15"
in FaxDispatch or FaxNotify.
The patch is designed to detect the locale setting in configure and to
propagate it into etc/config.cache. If you're upgrading, or adding this
patch to an existing installation, you' need to re-run faxsetup after
./configure, make, and 'make install' (just as you do when you install),
in order to get the CHARSET default set into config.cache. So if
iso8859-15 shows up from 'locale -c LC_MESSAGES' then it should happen
"automatically" after re-running faxsetup after rebuilding and reinstalling.
Thanks,
Lee.
diff -Nru hylafax.orig/configure hylafax/configure
--- hylafax.orig/configure 2005-11-12 09:12:54.065694256 -0800
+++ hylafax/configure 2005-11-12 11:37:52.161382720 -0800
@@ -119,6 +119,7 @@
CHOWN
CC
CCOMPILER
+CHARSET
CMP
COL
CP
@@ -294,6 +295,15 @@
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
#
diff -Nru hylafax.orig/etc/faxsetup.sh.in hylafax/etc/faxsetup.sh.in
--- hylafax.orig/etc/faxsetup.sh.in 2005-11-12 09:12:54.057695472 -0800
+++ hylafax/etc/faxsetup.sh.in 2005-11-12 11:47:43.915422432 -0800
@@ -50,6 +50,7 @@
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
@@ -130,6 +131,7 @@
AWK
BIN DIR_BIN
CAT
+CHARSET
CHGRP
CHMOD
CHOWN
diff -Nru hylafax.orig/util/faxrcvd.sh.in hylafax/util/faxrcvd.sh.in
--- hylafax.orig/util/faxrcvd.sh.in 2005-11-12 09:12:53.801734384 -0800
+++ hylafax/util/faxrcvd.sh.in 2005-11-12 16:11:16.048612808 -0800
@@ -57,6 +57,7 @@
MIMENCODE=mimencode
TIFF2PDF=bin/tiff2pdf
TTYCMD=tty
+CHARSET=us-ascii
. etc/setup.cache
@@ -195,8 +196,8 @@
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"
diff -Nru hylafax.orig/util/notify.sh.in hylafax/util/notify.sh.in
--- hylafax.orig/util/notify.sh.in 2005-11-12 09:12:53.817731952 -0800
+++ hylafax/util/notify.sh.in 2005-11-12 16:11:56.124520344 -0800
@@ -70,6 +70,7 @@
MIMENCODE=mimencode
TIFF2PDF=bin/tiff2pdf
TTYCMD=tty
+CHARSET=us-ascii
. etc/setup.cache
@@ -397,8 +398,8 @@
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 ""
}
diff -Nru hylafax.orig/util/pollrcvd.sh.in hylafax/util/pollrcvd.sh.in
--- hylafax.orig/util/pollrcvd.sh.in 2005-11-12 09:12:53.815732256 -0800
+++ hylafax/util/pollrcvd.sh.in 2005-11-12 16:11:35.782612784 -0800
@@ -58,6 +58,7 @@
MIMENCODE=mimencode
TIFF2PDF=bin/tiff2pdf
TTYCMD=tty
+CHARSET=us-ascii
. etc/setup.cache
@@ -175,8 +176,8 @@
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"