Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Typerules not working
I installed html2ps and used the typerule template
someone posted recently in this list. Unfortunately
even after a restart of hylafax those typerules are
ignored.
Please have a look at my current typrules file and
the output of sendfax:
typrule file:
############################################################################
##
# These are the "null rules"--i.e. for matching formats handled
# directly by the server.
#
#offset datatype match result rule
0 string %! ps
0 short 0x4d4d tiff
0 short 0x4949 tiff
#
# HTML Documents
0 string <!DOCTYPE ps /usr/local/bin/html2ps %i
>%o
0 string <!doctype ps /usr/local/bin/html2ps %i
>%o
0 string <!-- ps /usr/local/bin/html2ps %i
>%o
0 string <html> ps /usr/local/bin/html2ps %i
>%o
0 string <HTML> ps /usr/local/bin/html2ps %i
>%o
0 string <TITLE> ps /usr/local/bin/html2ps %i
>%o
0 string <title> ps /usr/local/bin/html2ps %i
>%o
0 string <head> ps /usr/local/bin/html2ps %i
>%o
0 string <HEAD> ps /usr/local/bin/html2ps %i
>%o
0 string <h1> ps /usr/local/bin/html2ps %i
>%o
0 string <H1> ps /usr/local/bin/html2ps %i
>%o
0 string <h2> ps /usr/local/bin/html2ps %i
>%o
0 string <H2> ps /usr/local/bin/html2ps %i
>%o
0 string <h3> ps /usr/local/bin/html2ps %i
>%o
0 string <H3> ps /usr/local/bin/html2ps %i
>%o
0 string <P> ps /usr/local/bin/html2ps %i
>%o
0 string <p> ps /usr/local/bin/html2ps %i
>%o
#
0 short 000732 tiff %F/sgi2fax -%f -o %o -v %V\
-s %s %i
0 short 017436 error packed data
0 short 017635 error compressed data
0 short 0x0506 ps showcase -p -f %i
0 short 0x5343 ps showcase -p -f %i
0 short 0xf702 ps dvips -q -o %o %i
0 string GIF tiff
>3 string 87a tiff gif2tiff -%f -v %V %i %o
>3 string 89a error GIF (version 89a)
0 long 0x59a66a95 tiff ras2tiff -%f -v %V %i %o
#
# NB: psdit is the Adobe Transcript program for converting ditroff output
0 string x T psc ps psdit <%i >%o
#
# These are from the PBMPLUS package's auxiliary magic numbers file
# Most of these entries use the "string" format so that they will work on
# both big-endian and little-endian machines.
#
0 string begin error uuencoded file
0 string xbtoa error btoa'd file
0 string P1 error PBM file
0 string P2 error PGM file
0 string P3 error PPM file
0 string P4 error PBM "rawbits" file
0 string P5 error PGM "rawbits" file
0 string P6 error PPM "rawbits" file
#
0 string WNGZWZSS error Wingz spreadsheet
0 string #Inventor V error IRIS Inventor file
>15 string binary error binary IRIS Inventor file
>15 string ascii ps %F/textfmt -B -f
Courier-Bold\
-p 11 -s %s >%o <%i
#
#
# Japanization (should help other iso-2022 variants too)
#
#>15 string asciiesc ps a2ps-j -l '' -p -ns -nt <%i
>%o
#0 asciiesc x ps a2ps-j -l '' -p -ns -nt <%i
>%o
#
# This causes anything else with ascii-only data to be treated as text.
#
0 ascii x ps %F/textfmt -B -f
Courier-Bold\
-p 11 -s %s >%o <%i
############################################################################
##
sendfax output on sending a html message
############################################################################
##
blubber# /> sendfax -v -v -n -m -d 349
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body>
TEST
</body>
</html>
Trying localhost (127.0.0.1) at port 4559...
Connected to localhost.blubber.blabber.de.
220 blubber.blabber.de server (HylaFAX (tm) Version 4.0pl2) ready.
-> USER root
230 User root logged in.
match against (..., 35)
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//faxsndQ14123 </tmp//sndfaxI14123"
Apply DisplayNumber rules to "349"
--> return result "349"
-> TYPE I
200 Type set to Image.
SEND compressed data, 5797 bytes
-> PORT 127,0,0,1,9,177
200 PORT command successful.
-> MODE Z
200 Mode set to ZIP.
-> STOT
150 FILE: /tmp/doc18.ps (Opening new data connection).
SEND 2152 bytes transmitted (2.7x compression)
226 Transfer complete (FILE: /tmp/doc18.ps).
-> JNEW
200 New job created: jobid: 18 groupid: 18.
-> JPARM FROMUSER "Charlie Root"
213 FROMUSER set to "Charlie Root".
-> JPARM LASTTIME 000259
213 LASTTIME set to 000259.
-> JPARM MAXDIALS 12
213 MAXDIALS set to 12.
-> JPARM MAXTRIES 3
213 MAXTRIES set to 3.
-> JPARM SCHEDPRI 127
213 SCHEDPRI set to 127.
-> JPARM DIALSTRING "349"
213 DIALSTRING set to "349".
-> JPARM NOTIFYADDR "root@blubber.blabber.de"
213 NOTIFYADDR set to "root@blubber.blabber.de".
-> JPARM VRES 196
213 VRES set to 196.
-> JPARM PAGEWIDTH 215
213 PAGEWIDTH set to 215.
-> JPARM PAGELENGTH 279
213 PAGELENGTH set to 279.
-> JPARM NOTIFY "none"
213 NOTIFY set to "none".
-> JPARM PAGECHOP "default"
213 PAGECHOP set to "default".
-> JPARM CHOPTHRESHOLD 3
213 CHOPTHRESHOLD set to 3.
-> JPARM DOCUMENT /tmp/doc18.ps
200 Added document /tmp/doc18.ps as docq/doc18.ps.18.
-> JSUBM
200 Job 18 submitted.
request id is 18 (group id 18) for host localhost (1 file)
#####################################################################
Any ideas why hylafax is ignoring my typrules?
Alex