RFD: using "*" in phone-number with faxspool
Timo Neumann (james@uni-hohenheim.de)
15 Jun 1999 1921:02:51 GMT
Hi all!
For testing purposes (and to save money ;-) ) I want to send a
fax to the phone-number "**" but faxspool only allows [-0-9TtPpW,;]
for the phone-number. I know I could use sendfax directly but I
wanted the automatic conversion from faxspool. :-)
So I tried my limited programming-abilities and did the following
changes to faxspool, faxrunq and faxrunqd.
This is not really tested. faxspool writes a correct JOB file
and faxrunq does dial but Ididn't test my change to faxrunqd
at all and I don't know if it only worked by accident.
So, what do you think?
-----
james@kirk:/home/james/mgetty-1.1.20/fax > diff faxspool.in faxspool.in.new
514c514
< if expr "$phone" : "[-0-9TtPpW,;]*$" >/dev/null ; then :
---
> if expr "$phone" : "[-0-9TtPpW,;\*]*$" >/dev/null ; then :
james@kirk:/home/james/mgetty-1.1.20/fax > diff faxrunq.in faxrunq.in.new
176c176
< END { printf "'"$FAX_SENDER"' -v%s %s %s", \
---
> END { printf "'"$FAX_SENDER"' -v%s \"%s\" %s", \
james@kirk:/home/james/mgetty-1.1.20/fax > diff faxrunqd.in faxrunqd.in.new
856c856
< @flags, $phone,
---
> @flags, \"$phone\",
-----
bye,
Timo
--
Timo Neumann -- GUS#2 -- '95-'96 Suzuki GS500E 11.2 Mm
http://www.uni-hohenheim.de/~james/ '96-'99 Honda CB750 32.3 Mm
PGP: 1024/0792BF9D 18 07 12 F7 E4 2C 3A 66 BD 74 2D 60 81 45 02 DA
-------------------------------------------------------------------