HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Mail -> Fax only with PS Attachement??
Am Mi 18.05.2005 15:54 schrieb Lee Howard <faxguy@xxxxxxxxxxxxxxxx>:
> Sven Gehr wrote:
Hi@all,
> http://www.hylafax.org/archive/2005-05/msg00075.php
ok, I do the following:
1. make the directory /usr/lib/fax/scripts
2. add in /usr/lib/fax/hyla.conf the line:
MIMEConverters: /usr/lib/fax/scripts/
3. generate the script /usr/lib/fax/scripts/filter.pl with:
--------------------------------------------------------------------
#!/usr/bin/perl
# Read from the standard input
@text=<STDIN>;
$size=@text;
# Count the number of "showpage"
$count=0;
for($i=0;$i<=$size;$i++){if($text[$i] =~ /showpage/){$count++;}}
# Discard the last line that contain "showpage"
$num=1;
for($i=0;$i<=$size;$i++){
if($text[$i] =~ /showpage/){
if($num!=$count){$num++;}
else{$text[$i]=~s/showpage//g;}
}
print $text[$i];
}
--------------------------------------------------------------------
4. make the directory /usr/lib/fax/scripts/application
5. generate the script /usr/lib/fax/scripts/application/tif with:
--------------------------------------------------------------------
#!/bin/bash
/bin/echo " "
/bin/echo "showpage"
/usr/bin/tiff2ps -q -sPAPERSIZE=a4 -dBATCH -dNOPAUSE -r600x800
-sDEVICE=pswrite -sOutputFile=- $1 | /usr/lib/fax/scripts/filter.pl
--------------------------------------------------------------------
6. adjust the entry FILETYPE=ps to FILETYPE=tif in:
/var/spool/fax/bin/faxrcvd/
7. restart hylafax
When I received a Fax hylafax was generate a mail with tif attachment
but when I send a mail with tif attachement to the faxmail-gateway the
acceptor become one page with:
> >DISCARDED FAX document (aplication/tif) GOES HERE
what's wrong?
with best regards
sven
____________________ 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*