Hi,
I have just installed and configured hylafax for mail to fax job.
It is strange that the sendfax cannot recognize the pdf file attachment and recognize is as ps file.
Below is the typerule and the log. I am using hylafax version 4.4.0 on openSUSE 11
Can anyone help me?
----------------------------------
# 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
#
0 short 000732 tiff %F/sgi2fax -%f -o %o -v %V\
-s %s %i
0 short 017436 error packed data support not configured
0 short 017635 error compressed data support not configured
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) support not configured
0 long 0x59a66a95 tiff ras2tiff -%f -v %V %i %o
#
# HylaFAX now has server-side PDF conversion, so no need for pdf2ps.
# If you have trouble or if you prefer to
use pdf2ps, comment this
# next line and uncomment the second.
0 string %PDF pdf
#0 string %PDF ps pdf2ps %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 support not configured
0
string xbtoa error btoa'd file support not configured
0 string P1 error PBM file support not configured
0 string P2 error PGM file support not configured
0 string P3 error PPM file support not configured
0 string P4 error PBM "rawbits" file support not configured
0 string P5 error PGM "rawbits" file support
not configured
0 string P6 error PPM "rawbits" file support not configured
#
0 string WNGZWZSS error Wingz spreadsheet support not configured
0 string #Inventor V error IRIS Inventor file support not configured
>15 string binary error binary IRIS Inventor file support not configured
>15 string ascii ps %F/a2pswrap %s %o
%i
#
0 string \x89PNG error PNG support not configured
0 short 0xffd8 error filetype conversion support not configured
>6 string JFIF error JPEG support not configured
0 short 0xd8ff error filetype conversion support not configured
>6 string JFIF error JPEG support not configured
0 string #FIG
error FIG support not configured
#
# 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\
# -Ml=0.4in -p 11 -s %s >%o <%i
----------------------------------
+ cp /tmp/mail2fax.9154/_message_ /tmp/mail2faxmail.9154
++ grep -e '^subject:' -i
/tmp/mail2fax.9154/_message_
++ sed q
++ sed 's/^[^:]*: *//g'
+ JOBID=test
++ grep -e '^to:' -i /tmp/mail2fax.9154/_message_
++ sed q
+ TOLINE='To: 5210324@xxxxxxxxxxxxxxxxxxxx'
++ grep -e '^from:' -i /tmp/mail2fax.9154/_message_
++ sed q
+ FROMLINE='From: Dityo Krisnugroho <dkrisnugroho@xxxxxxxxxxxxx>'
++ echo To: 5210324@xxxxxxxxxxxxxxxxxxxx
++ grep '<.*>'
+ '[' '' '!=' '' ']'
++ echo To: 5210324@xxxxxxxxxxxxxxxxxxxx
++ sed -e 's/^[Tt]o://g' -e 's/[ ]*\(.*[^@]*\)@.*/\1/'
+ TONUMBER=5210324
++ echo From: Dityo Krisnugroho '<dkrisnugroho@xxxxxxxxxxxxx>'
++ grep '<.*>'
+ '[' 'From: Dityo Krisnugroho <dkrisnugroho@xxxxxxxxxxxxx>' '!=' '' ']'
++ echo From: Dityo Krisnugroho '<dkrisnugroho@xxxxxxxxxxxxx>'
++ sed -e 's/.*<\(.*\).*>.*/\1/'
+ FROMPATH=dkrisnugroho@xxxxxxxxxxxxx
+ cat /tmp/mail2fax.9154/_message_
+ faxmail -v -T
dkrisnugroho@xxxxxxxxxxxxx
HEADER From dkrisnugroho@xxxxxxxxxxxxx Tue Feb 24 15: 21:00 2009
HEADER Return-Path: <dkrisnugroho@xxxxxxxxxxxxx>
HEADER X-Original-To: 5210324@xxxxxxxxxxxxxxxxxxxx
HEADER Delivered-To: mail2fax@xxxxxxxxxxxxxxxxxxxx
HEADER Received: from [127.0.0.1] (unknown [192.168.42.86])
+HEADER Received: by bapfax.binaartha.com (Postfix) with ESMTP id 941F031EB2
+HEADER Received: for <5210324@xxxxxxxxxxxxxxxxxxxx>; Tue, 24 Feb 2009 15:21:00 +0700 (WIT)
HEADER Message-ID: <49A3AE76.8050400@xxxxxxxxxxxxx>
HEADER Date: Tue, 24 Feb 2009 15:23:18 +0700
HEADER From: Dityo Krisnugroho <dkrisnugroho@xxxxxxxxxxxxx>
HEADER User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
HEADER MIME-Version: 1.0
HEADER To: 5210324@xxxxxxxxxxxxxxxxxxxx
HEADER Subject: test
HEADER Content-Type: multipart/mixed;
+HEADER Content-Type:
boundary="------------090508040208000503080904"
MIME part (line 18): multipart/mixed charset=us-ascii encoding=7bit
HEADER Content-Type: text/plain; charset=ISO-8859-1; format=flowed
HEADER Content-Transfer-Encoding: 7bit
MIME part (line 23): text/plain charset=iso-8859-1 encoding=7bit
HEADER Content-Type: application/pdf;
+HEADER Content-Type: name="PSSSizingChart_WOMENS.pdf"
HEADER Content-Transfer-Encoding: base64
HEADER Content-Disposition: inline;
+HEADER Content-Disposition: filename="PSSSizingChart_WOMENS.pdf"
MIME part (line 32): application/pdf charset=us-ascii encoding=base64
+ sendfax -vv -n -D -f dkrisnugroho@xxxxxxxxxxxxx -i test -d 5210324
Trying localhost (127.0.0.1) at port 4559...
Connected to localhost.
220 bapfax.binaartha.com server (HylaFAX (tm) Version 4.4.0) ready.
-> USER nobody
230 User nobody logged in.
match against (..., 512)
rule: offset 0 string = "%!" --
failed (comparison)
rule: offset 0 long = 0x4d4d -- failed (comparison)
rule: offset 0 long = 0x4949 -- failed (comparison)
rule: offset 0 long = 0x1da -- failed (comparison)
rule: offset 0 long = 0x1f1e -- failed (comparison)
rule: offset 0 long = 0x1f9d -- failed (comparison)
rule: offset 0 long = 0x506 -- failed (comparison)
rule: offset 0 long = 0x5343 -- failed (comparison)
rule: offset 0 long = 0xf702 -- failed (comparison)
rule: offset 0 string = "GIF" -- failed (comparison)
rule: offset 0 tiff = 0x59a66a95 -- failed (comparison)
rule: offset 0 string = "%PDF" -- 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 string = "\x89PNG" -- failed (comparison)
rule: offset 0 long = 0xffd8 -- failed (comparison)
rule: offset 0 long = 0xd8ff -- failed (comparison)
rule: offset 0 string = "#FIG" -- failed (comparison)
rule: offset 0 ascii = -- success (result postscript, rule "%F/a2pswrap %s %o %i "--chars-per-line=80"")
CONVERT "/usr/lib/fax/a2pswrap default '/tmp//sndfaxKIZvy8' '/tmp//sndfaxCbrbLE' "--chars-per-line=80""
Apply DisplayNumber rules to "5210324"
--> return result "5210324"
-> TYPE I
200 Type set to Image.
SEND compressed data, 87197 bytes
-> PORT
127,0,0,1,16,231
200 PORT command successful.
-> MODE Z
200 Mode set to ZIP.
-> STOT
150 FILE: /tmp/doc54.ps (Opening new data connection).
SEND 11071 bytes transmitted (7.9x compression)
226 Transfer complete (FILE: /tmp/doc54.ps).
-> JNEW
200 New job created: jobid: 38 groupid: 38.
-> JPARM FROMUSER "dkrisnugroho"
213 FROMUSER set to "dkrisnugroho".
-> 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 "5210324"
213 DIALSTRING set to "5210324".
-> JPARM NOTIFYADDR "dkrisnugroho@xxxxxxxxxxxxx"
213 NOTIFYADDR set to "dkrisnugroho@xxxxxxxxxxxxx".
-> JPARM JOBINFO "test"
213 JOBINFO set to "test".
-> JPARM VRES 98
213 VRES set to 98.
-> JPARM PAGEWIDTH 209
213 PAGEWIDTH set to
209.
-> JPARM PAGELENGTH 296
213 PAGELENGTH set to 296.
-> JPARM NOTIFY "done"
213 NOTIFY set to "done".
-> JPARM PAGECHOP "default"
213 PAGECHOP set to "default".
-> JPARM CHOPTHRESHOLD 3
213 CHOPTHRESHOLD set to 3.
-> JPARM DOCUMENT /tmp/doc54.ps
200 Added document /tmp/doc54.ps as docq/doc54.ps.38.
-> JSUBM
200 Job 38 submitted.
request id is 38 (group id 38) for host localhost (1 file)
+ rm -rf /tmp/mail2fax.9154
+ exit 0