Was soll ich tun?
Hallo Arne, hatte genau das selbe Problem auch unter 8.0.
Unten setze ich mal meine faxcrvd mit ran - damit läuft es bei mir.
Gruß Sven
#! /bin/sh
# $Id: faxrcvd.sh.in,v 1.1 2001/04/15 03:48:16 darren Exp $
#
# HylaFAX Facsimile Software
#
# Copyright (c) 1990-1996 Sam Leffler
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
# HylaFAX is a trademark of Silicon Graphics
#
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names
of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#
#
# faxrcvd file devID commID error-msg destination
#
if [ $# -lt 5 ]; then
echo "Usage: $0 file devID commID error-msg destination"
exit 1
fi
test -f etc/setup.cache || {
SPOOL=`pwd`
cat<&1 $SENDMAIL -ffax -oi $TOADDR
if [ -n "$SENDTO" ]; then
(MIMEBOUNDARY="NextPart$$"
echo "Mime-Version: 1.0"
echo "Content-Type: Multipart/Mixed; Boundary=\"$MIMEBOUNDARY\""
echo "Content-Transfer-Encoding: 7bit"
echo "To: $SENDTO"
echo "From: The HylaFAX Receive Agent <fax>"
echo "Subject: facsimile received from $SENDER";
echo ""
echo "--$MIMEBOUNDARY"
echo "Content-Type: text/plain; charset=us-ascii"
echo "Content-Transfer-Encoding: 7bit"
echo ""
echo "$FILE (ftp://$HOSTNAME:$PORT/$FILE):"; $INFO -n $FILE
echo "ReceivedOn: $DEVICE"
if [ "$MSG" ]; then
echo ""
echo "The full document was not received because:"
echo ""
echo " $MSG"
echo ""
echo " ---- Transcript of session follows ----"
echo ""
if [ -f log/c$COMMID ]; then
$SED -e '/-- data/d' \
-e '/start.*timer/d' -e '/stop.*timer/d' \
log/c$COMMID
elif [ -n "$COMMID" ]; then
echo " No transcript available (CommID c$COMMID)."
else
echo " No transcript available."
fi
else
echo "CommID: c$COMMID (ftp://$HOSTNAME:$PORT/log/c$COMMID)"
fi
TEMP="`$INFO $FILE | $AWK -F: '/Received/ { print $0 }'
2>/dev/null`"
TEMP2="`echo $TEMP | sed -e 's/\Received\: //'`"
TEMP3="`echo $TEMP2 | sed -e 's/://g'`"
DATE="`echo $TEMP3 | sed -e 's/ /_/'`"
TEMP="`echo $SENDER | sed -e 's/+//'`"
SENDERSH="`echo $TEMP | sed -e 's/ //g'`"
echo ""
echo "--$MIMEBOUNDARY"
# echo "Content-Type: application/postscript"
echo "Content-Type: application/pdf"
echo "Content-Description: FAX document"
# echo "Content-Transfer-Encoding: 7bit"
echo "Content-Transfer-Encoding: base64"
echo -E -n "Content-Disposition: attachment;
filename=Fax_from_$SENDERSH"
echo -E "_at_$DATE.pdf"
echo ""
# $FAX2PS $FILE 2>/dev/null
#
# Encode PDF file into email
# mimencode is part of metamail package
#
mimencode -b $SPOOL/$TRUNCFILE.pdf
echo "$FILE"
echo ""
echo "--$MIMEBOUNDARY--"
) | 2>&1 $SENDMAIL -ffax -oi $SENDTO
rm $SPOOL/$TRUNCFILE.ps $SPOOL/$TRUNCFILE.pdf
fi
else
#
# Generate notification mail for a failed attempt.
#
(echo "To: $TOADDR"
echo "From: The HylaFAX Receive Agent <fax>"
echo "Subject: facsimile not received"
echo ""
echo "An attempt to receive facsimile on $DEVICE failed because:"
echo ""
echo " $MSG"
echo ""
echo " ---- Transcript of session follows ----"
echo ""
if [ -f log/c$COMMID ]; then
$SED -e '/-- data/d' \
-e '/start.*timer/d' -e '/stop.*timer/d' \
log/c$COMMID
elif [ -n "$COMMID" ]; then
echo " No transcript available (CommID c$COMMID)."
else
echo " No transcript available."
fi
) | 2>&1 $SENDMAIL -ffax -oi $TOADDR
fi