Printing Tiff Faxes attached to e-mail using Mozilla 1.0

Printing Tiff Faxes attached to e-mail using Mozilla 1.0

Post by rab » Tue, 05 Nov 2002 06:27:16



Hi,

I'm using RH 7.1 on an Intel PC. I'm using Mozilla 1.0 I get faxes in
e-mails as tiff files. Saving them and then:

 > fax2ps fax.name.tif | lpr

prints them out nicely, or if I just want to view the Postscript:

 > fax2ps fax.name.tif | gv -

I would like to use the "open" attachment feature to do this
automatically. I'm familiar with opening various types of files using
particular programs. For example, if you have a Postscript attachment,
you can use gv to automatically view it. The problem is, in order to
convert from tiff to ps and then print, I need the file name. I've tried
various ways but can't seem to get hold of the filename. In Netscape,
you used to be able to specify %s for the filename (in fact you had to).
I've also tried setting up a bash script file:

fax2ps $1 | lpr

This works as a script, yet it does not work in Mozilla. (I don't get
error messages - just no output.) Yet if I use display from ImageMagick:

/usr/X11R6/bin/display

this works (it displays the fax - but printing from display is not that
good - each page has to be printed separately). Why does display work
but not my script?

Any help would be appreciated.

Rick B.

 
 
 

Printing Tiff Faxes attached to e-mail using Mozilla 1.0

Post by Anonymou » Wed, 06 Nov 2002 00:15:11



Quote:> I'm using RH 7.1 on an Intel PC. I'm using Mozilla 1.0 I get faxes in
> e-mails as tiff files. Saving them and then:

> > fax2ps fax.name.tif | lpr

> prints them out nicely, or if I just want to view the Postscript:

> > fax2ps fax.name.tif | gv -

> I would like to use the "open" attachment feature to do this
> automatically. I'm familiar with opening various types of files using
> particular programs. For example, if you have a Postscript attachment,
> you can use gv to automatically view it. The problem is, in order to
> convert from tiff to ps and then print, I need the file name. I've tried
> various ways but can't seem to get hold of the filename. In Netscape,
> you used to be able to specify %s for the filename (in fact you had to).
> I've also tried setting up a bash script file:

> fax2ps $1 | lpr

> This works as a script, yet it does not work in Mozilla. (I don't get
> error messages - just no output.) Yet if I use display from ImageMagick:

Please set up the following (debugging) script as the application to "open"
tiff attachments, and then post the contents of "/tmp/fax2ps.log".

#!/bin/sh
exec 1>/tmp/fax2ps.log

set             # is the $PATH environment variable set as it should?
which fax2ps
exit

 
 
 

Printing Tiff Faxes attached to e-mail using Mozilla 1.0

Post by Rick Bilonic » Wed, 06 Nov 2002 07:02:42




>>I'm using RH 7.1 on an Intel PC. I'm using Mozilla 1.0 I get faxes in
>>e-mails as tiff files. Saving them and then:

>>>fax2ps fax.name.tif | lpr

>>prints them out nicely, or if I just want to view the Postscript:

>>>fax2ps fax.name.tif | gv -

>>I would like to use the "open" attachment feature to do this
>>automatically. I'm familiar with opening various types of files using
>>particular programs. For example, if you have a Postscript attachment,
>>you can use gv to automatically view it. The problem is, in order to
>>convert from tiff to ps and then print, I need the file name. I've tried
>>various ways but can't seem to get hold of the filename. In Netscape,
>>you used to be able to specify %s for the filename (in fact you had to).
>>I've also tried setting up a bash script file:

>>fax2ps $1 | lpr

>>This works as a script, yet it does not work in Mozilla. (I don't get
>>error messages - just no output.) Yet if I use display from ImageMagick:

>Please set up the following (debugging) script as the application to "open"
>tiff attachments, and then post the contents of "/tmp/fax2ps.log".

>#!/bin/sh
>exec 1>/tmp/fax2ps.log

>set                 # is the $PATH environment variable set as it should?
>which fax2ps
>exit

Hi. Here is what is in /tmp/fax2ps.log:

command line arguments: /tmp/c674b51-1.tif
ADDON_PATH=/usr/local/mozilla
BASH=/bin/sh
BASH_VERSINFO=([0]="2" [1]="04" [2]="21" [3]="1" [4]="release"
[5]="i386-redhat-linux-gnu")
BASH_VERSION='2.04.21(1)-release'
DIRSTACK=()
DISPLAY=127.0.0.1:0.0
DYLD_LIBRARY_PATH=/usr/local/mozilla:/usr/local/lib/mre/mre-1.1
EUID=503
FONTCONFIG_PATH=/etc/fonts:/usr/local/mozilla/res/Xft
GROUP=users
GROUPS=()
HOME=/home/naut
HOST=rbilonick.corp.cnsl.com
HOSTNAME=rbilonick.corp.cnsl.com
HOSTTYPE=i386
IFS='  
'
KDEDIR=/usr
LANG=en_US
LD_LIBRARY_PATH=/usr/local/mozilla:/usr/local/mozilla/plugins:/usr/local/lib/mre/mre-1.1
LESSOPEN='|/usr/bin/lesspipe.sh %s'
LIBPATH=/usr/local/mozilla:/usr/local/lib/mre/mre-1.1
LIBRARY_PATH=/usr/local/mozilla:/usr/local/mozilla/components:/usr/local/lib/mre/mre-1.1
LOGNAME=naut
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'
MACHTYPE=i386-redhat-linux-gnu
MAIL=/var/mail/naut
MOZILLA_FIVE_HOME=/usr/local/mozilla
MRE_HOME=/usr/local/lib/mre/mre-1.1
NDGUTIL=/home/athome/bin_linux
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
PIPESTATUS=([0]="0")
PPID=10984
PS4='+ '
PWD=/home/naut
QTDIR=/usr/lib/qt-2.3.0
REMOTEHOST=localhost.localdomain
ROOTSYS=/usr/local/root/2.24.02/gcc-c++-2.95.2
R_NSIZE=1M
R_VSIZE=15M
SHELL=/bin/tcsh
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLIB_PATH=/usr/local/mozilla:/usr/local/lib/mre/mre-1.1
SHLVL=3
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
TERM=xterm
UID=503
USER=naut
VENDOR=intel
XSUNSMESIZE=512
XSUNTRANSPORT=shmem
_='command line arguments: /tmp/c674b51-1.tif'
/usr/bin/fax2ps

I tried this on my Linux box at work. It is the same config as my home
computer. (The only difference is that I'm using Mozilla 1.0.1 on the
work machine and 1.0 on the home machine.) I can't get this to work on
either machine. I noticed that Mozilla thinks the attachment is .doc
(even though the extension is clearly ".tif"). I don't see any way to
change this.

Thanks.

Rick B.

 
 
 

Printing Tiff Faxes attached to e-mail using Mozilla 1.0

Post by rab » Wed, 06 Nov 2002 11:23:17





>>> I'm using RH 7.1 on an Intel PC. I'm using Mozilla 1.0 I get faxes
>>> in e-mails as tiff files. Saving them and then:

>>>> fax2ps fax.name.tif | lpr

>>> prints them out nicely, or if I just want to view the Postscript:

>>>> fax2ps fax.name.tif | gv -

>>> I would like to use the "open" attachment feature to do this
>>> automatically. I'm familiar with opening various types of files
>>> using particular programs. For example, if you have a Postscript
>>> attachment, you can use gv to automatically view it. The problem is,
>>> in order to convert from tiff to ps and then print, I need the file
>>> name. I've tried various ways but can't seem to get hold of the
>>> filename. In Netscape, you used to be able to specify %s for the
>>> filename (in fact you had to). I've also tried setting up a bash
>>> script file:

>>> fax2ps $1 | lpr

>>> This works as a script, yet it does not work in Mozilla. (I don't
>>> get error messages - just no output.) Yet if I use display from
>>> ImageMagick:

>> Please set up the following (debugging) script as the application to
>> "open"
>> tiff attachments, and then post the contents of "/tmp/fax2ps.log".

>> #!/bin/sh
>> exec 1>/tmp/fax2ps.log

>> set         # is the $PATH environment variable set as it should?
>> which fax2ps
>> exit

> Hi. Here is what is in /tmp/fax2ps.log:

> command line arguments: /tmp/c674b51-1.tif
> ADDON_PATH=/usr/local/mozilla
> BASH=/bin/sh
> BASH_VERSINFO=([0]="2" [1]="04" [2]="21" [3]="1" [4]="release"
> [5]="i386-redhat-linux-gnu")
> BASH_VERSION='2.04.21(1)-release'
> DIRSTACK=()
> DISPLAY=127.0.0.1:0.0
> DYLD_LIBRARY_PATH=/usr/local/mozilla:/usr/local/lib/mre/mre-1.1
> EUID=503
> FONTCONFIG_PATH=/etc/fonts:/usr/local/mozilla/res/Xft
> GROUP=users
> GROUPS=()
> HOME=/home/naut
> HOST=rbilonick.corp.cnsl.com
> HOSTNAME=rbilonick.corp.cnsl.com
> HOSTTYPE=i386
> IFS='   '
> KDEDIR=/usr
> LANG=en_US
> LD_LIBRARY_PATH=/usr/local/mozilla:/usr/local/mozilla/plugins:/usr/local/lib/mre/mre-1.1

> LESSOPEN='|/usr/bin/lesspipe.sh %s'
> LIBPATH=/usr/local/mozilla:/usr/local/lib/mre/mre-1.1
> LIBRARY_PATH=/usr/local/mozilla:/usr/local/mozilla/components:/usr/local/lib/mre/mre-1.1

> LOGNAME=naut
> LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'

> MACHTYPE=i386-redhat-linux-gnu
> MAIL=/var/mail/naut
> MOZILLA_FIVE_HOME=/usr/local/mozilla
> MRE_HOME=/usr/local/lib/mre/mre-1.1
> NDGUTIL=/home/athome/bin_linux
> OPTERR=1
> OPTIND=1
> OSTYPE=linux-gnu
> PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
> PIPESTATUS=([0]="0")
> PPID=10984
> PS4='+ '
> PWD=/home/naut
> QTDIR=/usr/lib/qt-2.3.0
> REMOTEHOST=localhost.localdomain
> ROOTSYS=/usr/local/root/2.24.02/gcc-c++-2.95.2
> R_NSIZE=1M
> R_VSIZE=15M
> SHELL=/bin/tcsh
> SHELLOPTS=braceexpand:hashall:interactive-comments
> SHLIB_PATH=/usr/local/mozilla:/usr/local/lib/mre/mre-1.1
> SHLVL=3
> SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
> TERM=xterm
> UID=503
> USER=naut
> VENDOR=intel
> XSUNSMESIZE=512
> XSUNTRANSPORT=shmem
> _='command line arguments: /tmp/c674b51-1.tif'
> /usr/bin/fax2ps

> I tried this on my Linux box at work. It is the same config as my home
> computer. (The only difference is that I'm using Mozilla 1.0.1 on the
> work machine and 1.0 on the home machine.) I can't get this to work on
> either machine. I noticed that Mozilla thinks the attachment is .doc
> (even though the extension is clearly ".tif"). I don't see any way to
> change this.

> Thanks.

> Rick B.

I added:


right before the last line and it works fine. What's wrong with my
script that works in stand-alone use?

Rick B.

 
 
 

1. attached file to e-mail using mailx in AIX

Anyone who know how to attach a file to e-mail using mailx! What I
need to do is I need to attach a text file when I send an e-mail to an
address. I do not want to appear the text within the body of my
e-mail.
Thanks in advance for whoever could share knowledge with me.

2. Mailbox for each mail aliases

3. Can I use balsa as my email client while using mozilla?

4. Solaris newer than 10/00 on Netra X1?

5. Active email and news (was Mozilla droppings in email...)

6. mod_jk.conf and mod_jk.so? Apache Errors

7. TIFF (Fax - CITT 3) ???

8. Two NICs, ipchains confused?

9. Is postscript -> TIFF (fax) converter available?

10. TIFF - Viewer (Faxes)

11. Fax Program - For TIFF Group 4

12. fax tiff reader

13. Can't fax using efax and print spooler in RH7.0