HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Printing incoming faxes, but not all?
Please pardon the top posting, I need to reconfigure Outlook. :/
It is somewhat trivial to add cases for SENDTO to faxrcvd and to put
your transport logic there. I think I am doing exactly what you want to
do, that is I have replaced our main fax number with Hylafax and a
printer and still route personal DIDs via email.
In my case I created a SENDTO case of "printer-lpr" and inserted some
logic into faxrcvd just after it reads in the FaxDispatch file to handle
it. Specifically I added:
if [ "$SENDTO" = "printer-lpr" ]; then
/usr/bin/tiff2ps -a $FILE | lpr
exit
fi
Then in FaxDispatch I simply specify SENDTO=printer-lpr for the DIDs
that are "paper" faxes.
This works perfectly for me but I won't vouch for it being done "right."
:)
sl
-----Original Message-----
From: hylafax-users-bounce@xxxxxxxxxxx
[mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of
hylafax@xxxxxxxxxxx
Sent: Tuesday, September 11, 2007 4:32 AM
To: hylafax_users
Subject: [hylafax-users] Printing incoming faxes, but not all?
Hi list!
I currently have a setup where all incoming faxes are routed and
printed.
For this i added a line at the very end of FaxDispatch :
/usr/bin/tiff2ps -a -h 11.1082 -w 7.8543 $FILE | lpr -P faxprinter
However, i am looking for a way to print only faxes to a certain DID,
and
the others should just be e-mailed.
Can i also add a printing command somewhere between these lines in
FaxDispatch (and how)?
case "$CALLID4" in
12345678)
SENDTO="iwantaprintout@xxxxxxx";
FILETYPE=pdf;
;;
87654321)
SENDTO="idont@xxxxxxx";
FILETYPE=pdf;
;;
esac
I tried to google for the answer, but i only found examples where people
print all, i would like to try and save some of the rainforests
on our planet ;)
Thanks!!
____________________ 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@xxxxxxxxxxx <
/dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*
____________________ 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@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*