HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: HylaFax: PostScript recognized as text - why?
>>>>> On Mon, 25 Aug 1997, "S" == Super-User wrote:
S> when you send a postscript file, are you just cut/pasting the text? or
S> sending it as a postscript MIME type? sending it as pure text will make
S> fax barf, coz it doesn't use magic to detect a ps message. it's dumb
S> and has to watch the mime do his act in the street.
Sorry, but that's just plain wrong. ;-)
HylaFAX uses a magic number typing scheme and types files quite intelligently according to the definitions setup in typerules (5f). If postscript files are being incorrectly typed as ascii text, you may indeed have a problem. Try having a look at the process by invoking sendfax with the '-v' flag:
[tpcadmin@hewes ~]$ sendfax -v -d 1234567 < postscript_file.ps
match against (..., 72)
rule: offset 0 string = "%!" -- success (result postscript, rule "")
Apply DisplayNumber rules to "1234567"
--> return result "1234567"
COVER SHEET "/usr/local/bin/faxcover -f 'Mr. Arlington Hewes' -n '1234567' -s 'default'"
request id is 162 (group id 162) for host localhost (1 file)
contrast this to the sending of an ASCII file:
[tpcadmin@hewes ~]$ sendfax -v -d 1234567 </etc/hosts
match against (..., 292)
rule: offset 0 string = "%!" -- failed (comparison)
rule: offset 0 short = 0x4d4d -- failed (comparison)
rule: offset 0 short = 0x4949 -- failed (comparison)
rule: offset 0 short = 0x1da -- failed (comparison)
rule: offset 0 short = 0x1f1e -- failed (comparison)
rule: offset 0 short = 0x1f9d -- failed (comparison)
rule: offset 0 short = 0x506 -- failed (comparison)
rule: offset 0 short = 0x5343 -- failed (comparison)
rule: offset 0 short = 0xf702 -- failed (comparison)
rule: offset 0 string = "GIF" -- failed (comparison)
rule: offset 0 long = 0x59a66a95 -- failed (comparison)
rule: offset 0 string = "x T psc" -- failed (comparison)
rule: offset 0 string = "begin" -- failed (comparison)
rule: offset 0 string = "xbtoa" -- failed (comparison)
rule: offset 0 string = "P1" -- failed (comparison)
rule: offset 0 string = "P2" -- failed (comparison)
rule: offset 0 string = "P3" -- failed (comparison)
rule: offset 0 string = "P4" -- failed (comparison)
rule: offset 0 string = "P5" -- failed (comparison)
rule: offset 0 string = "P6" -- failed (comparison)
rule: offset 0 string = "WNGZWZSS" -- failed (comparison)
rule: offset 0 string = "#Inventor V" -- failed (comparison)
rule: offset 0 ascii = -- success (result postscript, rule "%F/textfmt -B -f Courier-Bold -p 11 -s %s >%o <%i")
CONVERT "/usr/local/sbin/textfmt -B -f Courier-Bold -p 11 -s default >/tmp//faxsnda01917 </tmp//sndfaxa01917"
Apply DisplayNumber rules to "1234567"
--> return result "1234567"
COVER SHEET "/usr/local/bin/faxcover -f 'Mr. Arlington Hewes' -n '1234567' -s 'default' -p '1'"
request id is 163 (group id 163) for host localhost (1 file)
I hope this helps ;-)
-DPN
Attachment Converted: "C:\PROGRAM FILES\EUDORA\Attach\Re flexfax HylaFax PostScrip"