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 Do 19.05.2005 14:21 schrieb Sven Gehr <sven@xxxxxxxxxxxxx>:
> 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?
I find the following fils in /var/spool/fax/bin:
-rwxr-xr-x 1 root root 315 Apr 29 18:47 FaxDispatch*
-rwxr-xr-x 1 fax uucp 778 Jan 17 18:37 archive*
-rwxr-xr-x 1 fax uucp 9151 May 19 17:27 faxrcvd*
-rwxr-xr-x 1 root root 9004 Apr 22 10:09 faxrcvd.bak*
-rwxr-xr-x 1 fax uucp 412 Jan 17 18:37 faxsend*
-rwxr-xr-x 1 fax uucp 3670 Jan 17 18:37 mkcover*
-rwxr-xr-x 1 root root 26770 Apr 29 21:27 notify*
-rwxr-xr-x 1 fax uucp 2230 Jan 17 18:37 notify-4.1*
-rwxr-xr-x 1 fax uucp 2065 Jan 17 18:37 pcl2fax*
lrwxrwxrwx 1 root root 10 Apr 21 19:07 pdf2fax -> pdf2fax.gs*
-rwxr-xr-x 1 fax uucp 4817 Jan 17 18:37 pdf2fax.gs*
-rwxr-xr-x 1 fax uucp 7585 Jan 17 18:37 pollrcvd*
lrwxrwxrwx 1 root root 9 Apr 21 19:07 ps2fax -> ps2fax.gs*
-rwxr-xr-x 1 fax uucp 3750 Jan 17 18:37 ps2fax.dps*
-rwxr-xr-x 1 fax uucp 4816 Jan 17 18:37 ps2fax.gs*
-rwxr-xr-x 1 fax uucp 4030 Jan 17 18:37 ps2fax.imp*
-rwxr-xr-x 1 fax uucp 5758 Jan 17 18:37 tiff2fax*
-rwxr-xr-x 1 fax uucp 3362 Jan 17 18:37 tiff2pdf*
-rwxr-xr-x 1 fax uucp 5805 Jan 17 18:37 wedged*
In the file 'faxrcvd' can I adjust in with format the mail attachement
was generate (ps, tif or pdf).
Witch file i use for the other way mail -> fax ?
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*