smeserver-hylafax/root/var/spool/hylafax/etc/mailfax

18 lines
398 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
#
# mailfax email to fax gateway for qmail.
# see: http://www.vangee.nl/sme/hylafax
TMPVAR=${SENDER//\`/}
TMPVAR=${TMPVAR//\$\(/}
SENDER=${TMPVAR//\)/}
#/usr/bin/faxmail -f Helvetica-Bold | /usr/bin/sendfax \
#-f "$SENDER" \
#-n -d "$EXT2@`/usr/bin/expr \"$HOST\" : '\(.*\)\.fax$'`"
/usr/bin/faxmail -s a4 \
-n -u uucp "$EXT2@`/usr/bin/expr \"$HOST\" : '\(.*\)\.fax$'`" \
"$SENDER"