Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] Problems with typerules onHylaFAX 4.2.0-1rh7 under Linux RedHat 7.3



Hi,

I've configured HylaFAX to operate as a mail-to-fax gateway. It is setup for send only operation as we do not require HylaFax to support incoming faxes.
Hylafax sends mail files in plain text format correctly to FAX machines. So the modem config is correct.


I would like to send FAXs from files in html format. I've installed html2ps on our HylaFax server. I've verified html2ps is working correctly.

However, when I mail an HTML file to the HylaFax server it invokes textfmt instead of html2ps so the fax is printed as HTML source instead of HTML.

I appended these lines at the bottom /etc/hylafax/typerules

#
# HTML support
0    string    <!DOCTYPE HTML    ps    /usr/local/bin/html2ps %i >%o
0    string    <!doctype html    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    <TITLE            ps    /usr/local/bin/html2ps %i >%o
0    string    <title            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

If I execute sendfax on the server, it matches the HTML files as an ascii file and invokes textfmt

sendfax -n -vv -d 31204004139 /tmp/melding1.htm

Trying localhost (127.0.0.1) at port 4559...
Connected to localhost.localdomain.
220 cobra1.graddelt.com server (HylaFAX (tm) Version 4.2.0) ready.
-> USER shaun
230 User shaun logged in.
match against (..., 512)
.....
rule: offset 0 ascii = -- success (result postscript, rule "%F/textfmt -B -f Courier-Bold -Ml=0.4in -p 11 -s %s >%o <%i")
CONVERT "/usr/sbin/textfmt -B -f Courier-Bold -Ml=0.4in -p 11 -s default >/tmp//sndfaxD1d0wd </tmp/melding1.htm"


The top of my HTML file looks like this:

<html xmlns="http://www.w3.org/1999/xhtml";><head><title>Herstelmelding van Click
.....


Please could somebody tell me what I'm doing wrong?

TIA

Shaun




____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services