initial commit of file from CVS for smeserver-hylafax on Sat Sep 7 20:28:13 AEST 2024
This commit is contained in:
32
root/var/spool/hylafax/etc/FaxDispatch
Normal file
32
root/var/spool/hylafax/etc/FaxDispatch
Normal file
@@ -0,0 +1,32 @@
|
||||
## $Id: smeserver-hylafax-0.9-Add-FaxDispatch-config.patch,v 1.1 2021/11/02 09:52:38 brianr Exp $
|
||||
##
|
||||
## Default FaxDispatch file - routes all inbound faxes to FaxMaster as PDF
|
||||
##
|
||||
## Consult the faxrcvd(8C) man page for more information
|
||||
##
|
||||
|
||||
SENDTO=FaxMaster; # by default email to FaxMaster
|
||||
FILETYPE=pdf; # in PDF format
|
||||
|
||||
|
||||
##
|
||||
## This excerpt from the man page gives you an idea of what's possible here
|
||||
##
|
||||
## You can route by sender's TSI
|
||||
#case "$SENDER" in
|
||||
# *1*510*526*1212*) SENDTO=sam;; # Sam's test rig in Berkeley
|
||||
# *1*415*390*1212*) SENDTO=raster@asd;; # 7L Xerox room, used for scanning
|
||||
# *5107811212) SENDTO=peebles@mti;; # stuff from home
|
||||
#esac
|
||||
|
||||
## and/or by device
|
||||
#case "$DEVICE" in
|
||||
# ttyS1) SENDTO=john;; # all faxes received on ttyS1
|
||||
# ttyLT0) SENDTO=mary@home;; # all faxes received on ttyLT0
|
||||
#esac
|
||||
|
||||
## and/or by caller id
|
||||
#case "$CIDNUMBER" in
|
||||
# 435*) SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
|
||||
# 5059627777) SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
|
||||
#esac
|
1
root/var/spool/hylafax/etc/FaxNotify
Normal file
1
root/var/spool/hylafax/etc/FaxNotify
Normal file
@@ -0,0 +1 @@
|
||||
RETURNFILETYPE=pdf;
|
17
root/var/spool/hylafax/etc/mailfax
Normal file
17
root/var/spool/hylafax/etc/mailfax
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# mailfax <20> 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"
|
||||
|
Reference in New Issue
Block a user