Personal tools
HylaFAX The world's most advanced open source fax server

Difference between revisions of "Spam"

(Undo revision 3706 by 108.21.103.51 (Talk))
(FaxDispatch Question)
Line 1: Line 1:
 
<center>'''Information and advice by the HylaFAX community'''</center>
 
<center>'''Information and advice by the HylaFAX community'''</center>
  
==Mailing Lists==
+
Please bear with me.  I am fairly new to Hylafax and, haven’t done any Linux/Unix scripting in a long time.  My company has a Hylafax server with 4 analog (dialup) modems.  When a fax is received, it is saved as a PDF file to a Windows share for distribution to different departments.  This works well for routine faxes. However,  some of the faxes we receive are considered urgent and require immediate attention.  Keep in mind that we receive between 6500 to 7000 faxes a month! So, when an urgent fax is received, it takes a long time to sort through the shared folder and find it.  With that in mind, I have dedicated 1 of the modems to receive urgent faxes only. My next step is to configure the FaxDispatch file to save faxes from this modem to a STAT folder (Windows share).  Below, is the FaxDispatch file I intend to use for this purpose.  It would be nice to have some more experienced eyes to look at it and let me know if you think it would work.  Thanks in advance for your help.
The HylaFAX mailing lists are the primary forum for community discussion. Users of HylaFAX are encouraged to subscribe to the hylafax-users list where they can ask questions, provide advice, and discuss the state of all things fax. Information on subscribing to and from the mailing lists is available on the [[Mailing Lists]] page.
 
  
===Mailing List Archive===
+
______________________________________________________________________________________
A complete archive of all mailing list postings going back to 1997 is available. You may [http://www.hylafax.org/archive/ browse] or [http://www.hylafax.org/archive/ search] the archives.
+
# Don't want emails
 +
NOTIFY_FAXMASTER="never"
 +
# New name
 +
n=`date +%Y.%m.%d.%H.%M.%S`
 +
# This section will save received faxes to a specified location depending upon
 +
# which modem received the fax.
 +
 
 +
case "$DEVICE" in
 +
ttyS6)
 +
$TIFF2PDF -o $t.pdf $FILE
 +
/bin/mv $FILE /var/lib/samba/stat/$n;;
 +
ttyS5)
 +
$TIFF2PDF -o $t.pdf $FILE
 +
/bin/mv $FILE /var/lib/samba/fax/$n;;
 +
ttyS4)
 +
$TIFF2PDF -o $t.pdf $FILE
 +
/bin/mv $FILE /var/lib/samba/fax/$n;;
 +
ttyS1)
 +
$TIFF2PDF -o $t.pdf $FILE
 +
/bin/mv $FILE /var/lib/samba/fax/$n;;
 +
esac
 +
 
 +
# New destination
 +
# t=/var/lib/samba/fax/$n
 +
 
 +
# See interesting information, commands could `2>&1 >>` here too
 +
# set > /tmp/FaxDispatch.log
 +
 
 +
# make pdf in target
 +
# $TIFF2PDF -o $t.pdf $FILE
 +
 
 +
# We only copy to the fax location, archive this just in case
 +
/bin/cp $FILE $t.tif
 +
 
 +
# use this to move it instead, but then there is no archive and if
 +
#  a user deletes it from the Samba Share it's gone forever
 +
# /bin/mv $FILE /var/lib/samba/fax
 +
 
 +
# Make infos like faxrcvd
 +
if [ -f log/c$COMMID ]; then
 +
$SED -e '/-- data/d' \
 +
-e '/start.*timer/d' -e '/stop.*timer/d' \
 +
-e 's/=/=3D/g' \
 +
log/c$COMMID
 +
elif [ -n "$COMMID" ]; then
 +
echo "$DICTNOLOGAVAIL ($DICTCOMMID c$COMMID)."
 +
else
 +
echo "$DICTNOLOGAVAIL."
 +
fi
  
 
==Community Pages==
 
==Community Pages==

Revision as of 15:22, 6 February 2013

Information and advice by the HylaFAX community

Please bear with me. I am fairly new to Hylafax and, haven’t done any Linux/Unix scripting in a long time. My company has a Hylafax server with 4 analog (dialup) modems. When a fax is received, it is saved as a PDF file to a Windows share for distribution to different departments. This works well for routine faxes. However, some of the faxes we receive are considered urgent and require immediate attention. Keep in mind that we receive between 6500 to 7000 faxes a month! So, when an urgent fax is received, it takes a long time to sort through the shared folder and find it. With that in mind, I have dedicated 1 of the modems to receive urgent faxes only. My next step is to configure the FaxDispatch file to save faxes from this modem to a STAT folder (Windows share). Below, is the FaxDispatch file I intend to use for this purpose. It would be nice to have some more experienced eyes to look at it and let me know if you think it would work. Thanks in advance for your help.

______________________________________________________________________________________

  1. Don't want emails

NOTIFY_FAXMASTER="never"

  1. New name

n=`date +%Y.%m.%d.%H.%M.%S`

  1. This section will save received faxes to a specified location depending upon
  2. which modem received the fax.

case "$DEVICE" in ttyS6) $TIFF2PDF -o $t.pdf $FILE /bin/mv $FILE /var/lib/samba/stat/$n;; ttyS5) $TIFF2PDF -o $t.pdf $FILE /bin/mv $FILE /var/lib/samba/fax/$n;; ttyS4) $TIFF2PDF -o $t.pdf $FILE /bin/mv $FILE /var/lib/samba/fax/$n;; ttyS1) $TIFF2PDF -o $t.pdf $FILE /bin/mv $FILE /var/lib/samba/fax/$n;; esac

  1. New destination
  2. t=/var/lib/samba/fax/$n
  1. See interesting information, commands could `2>&1 >>` here too
  2. set > /tmp/FaxDispatch.log
  1. make pdf in target
  2. $TIFF2PDF -o $t.pdf $FILE
  1. We only copy to the fax location, archive this just in case

/bin/cp $FILE $t.tif

  1. use this to move it instead, but then there is no archive and if
  2. a user deletes it from the Samba Share it's gone forever
  3. /bin/mv $FILE /var/lib/samba/fax
  1. Make infos like faxrcvd

if [ -f log/c$COMMID ]; then $SED -e '/-- data/d' \ -e '/start.*timer/d' -e '/stop.*timer/d' \ -e 's/=/=3D/g' \ log/c$COMMID elif [ -n "$COMMID" ]; then echo "$DICTNOLOGAVAIL ($DICTCOMMID c$COMMID)." else echo "$DICTNOLOGAVAIL." fi

Community Pages

HylaFAX.org invites all HylaFAX users to add their own information to the Community Pages. Some recommendations include: HylaFAX hardware/software reviews, advice, or desired HylaFAX features. But please feel free to add whatever relevant information you think other HylaFAX users would be interested in.

**WARNING** Please note that this section of the site is subject to much less editorial review than the main Documentation section (for instance), and the information contained herein may occasionally need to be viewed with some skepticism. If you read anything that you believe is entirely incorrect or grossly misleading, please feel free to add a comment that says so, or change it to be more correct yourself!



Powered by MediaWiki
Attribution-ShareAlike 2.5

Project hosted by iFAX Solutions