[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hylafax
Subject:    [hylafax-users] Commands in FaxDispatch
From:       Frank Griffith <glassdude45 () yahoo ! com>
Date:       2003-12-23 11:30:52
[Download RAW message or body]

I read the man page on faxrcvd and in it they state you can enter some commands like \
this into your /var/spool/hylafax/etc/FaxDispatch file: \
============================================================ 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 scannin
       *5107811212)      SENDTO=peebles@mti;;  # stuff from home
       esac
       case "$DEVICE" in
       ttyS1)            SENDTO=john;;         # all faxes received on ttyS1
       ttyLT0)           SENDTO=mary@home;;    # all faxes received on ttyLT0
       esac
       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
       case "$SUBADDR" in
============================================================
Is that all there is to it? I will try this once I get to my office but this seems \
too simple. My existing FaxDispatch file has the following lines in it:  
SENDTO=FaxMaster;
FILETYPE=pdf;
 
/usr/local/bin/tiff2ps -a $FILE | lpr
 
Will adding this new code to the file override or have a negative effect on this \
lines too?  


---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now


[Attachment #3 (text/html)]

<DIV>I read the man page on faxrcvd and in it they state you can enter some commands \
like this into your /var/spool/hylafax/etc/FaxDispatch file:</DIV> \
<DIV>============================================================</DIV> <DIV>case \
"$SENDER" in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *1*510*526*1212*) \
SENDTO=sam;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Sam's test rig \
in Berkeley<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *1*415*390*1212*) <A \
href="mailto:SENDTO=raster@asd">SENDTO=raster@asd</A>;;&nbsp;&nbsp; # 7L Xerox room, \
used for scannin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
*5107811212)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A \
href="mailto:SENDTO=peebles@mti">SENDTO=peebles@mti</A>;;&nbsp; # stuff from \
home<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
esac<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case "$DEVICE" \
in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
ttyS1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
SENDTO=john;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # all faxes received on \
ttyS1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
ttyLT0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A \
href="mailto:SENDTO=mary@home">SENDTO=mary@home</A>;;&nbsp;&nbsp;&nbsp;  # all faxes \
received on ttyLT0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
esac<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case "$CIDNUMBER" \
in<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
435*)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SENDTO=lee; FILETYPE=pdf;; # all \
faxes from area code 435<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5059627777)&nbsp; \
SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in \
TIFF<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
esac<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case "$SUBADDR" \
in<BR>============================================================</DIV> <DIV>Is that \
all there is to it? I will try this once I get to my office but this seems too \
simple. My existing FaxDispatch file has the following lines in it:</DIV> \
<DIV>&nbsp;</DIV> <DIV>SENDTO=FaxMaster;</DIV>
<DIV>FILETYPE=pdf;</DIV>
<DIV>&nbsp;</DIV>
<DIV>/usr/local/bin/tiff2ps -a $FILE | lpr</DIV>
<DIV>&nbsp;</DIV>
<DIV>Will adding this new code to the file override or have a negative effect on this \
lines too?</DIV> <DIV>&nbsp;</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/slv/mailtag/*http://companion.yahoo.com/">Free Pop-Up \
Blocker - Get it now</a>


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic