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] filtering faxes based on time?



Simple!

thanks,

cal

Jamin W. Collins wrote:
Cal Primer wrote:
Is is possible to use FaxDispatch to route faxes by their arrival times? One of our customers sends an automated fax to us that arrives at the same time every morning, but without anything useful such as CID or TSI attached.

FaxDispatch is simply a shell script. Anything you can do in a shell script you can do within FaxDisptach. Assuming that you're using e-mail delivery and the SENDTO variable within FaxDispatch to specify the destination e-mail address something like the following should work:


NOW=$(date +%H%M)
if [ $NOW -gt 1400 ] && [ $NOW -lt 1420 ]; then
   SENDTO=foo@xxxxxxx
else
   SENDTO=bar@xxxxxxx
fi



--
Cal Pomes
IT Communications Analyst
Wolfram Research
100 Trade Center Dr.
Champaign, IL 61820
217-398-0700

____________________ 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*




Project hosted by iFAX Solutions