Debian Codegraph @

faxmail/mailfax.sh-qmail

raw ◀ ▶
1 Debian patch touch this file
•1 #!/bin/bash
2 #
3 # mailfax - email to fax gateway for qmail.
4 #
5 # This file should be installed as /local/etc/mailfax, and the
6 # following changes made to the qmail configuration:
7 #
8 # Add the following to /var/qmail/control/virtualdomains
9 # .fax:fax
10 #
11 # Add the following to /var/qmail/alias/.qmail-fax-default
12 # | /local/etc/mailfax
13 #
14
15 TMPVAR=${SENDER//\`/}
16 TMPVAR=${TMPVAR//\$\(/}
17 SENDER=${TMPVAR//\)/}
18
19 /local/fax/bin/faxmail | /local/fax/bin/sendfax \
20 -f "$SENDER" \
21 -d "$EXT2@`/usr/bin/expr \"$HOST\" : '\(.*\)\.fax$'`"