3 recipients=/mail/faxqueue/faxrecipients
5 # run mail as if we're on fs
8 bind -c /n/fs/mail/faxqueue /mail/faxqueue
12 # time Y|N pages [ftsi]
18 # Check for the NYT. It's 9 pages from 'Via Fax '.
21 if(~ $2 Y && {~ $4 'Via Fax '}){
22 switch(`{date|sed 's/ .*//'}){
23 case Mon Tue Wed Thu Fri
24 hour=`{date|sed 's/.* ([0-9][0-9]):.*/\1/'}
25 if(test $3 -gt 7 -a '(' $hour -lt 7 -o $hour -ge 21 ')')
36 for(i in `{seq 2 1 $3}){
46 cp $spool/$1.$ext /n/fs/lib/nyt/nyt.$to($i)
48 cp $spool/$1.1 /n/fs/lib/nyt/nyt.$3
51 {echo $*; echo FAX: page -w $spool/$1.'*'} | mail `{cat $recipients}
54 {echo $*; echo FAX: page -w $spool/$1.'*'} | mail `{cat $recipients}
56 {echo $*; echo FAX: page -w $spool/$1.'*'} | mail postmaster