2 messages in net.sourceforge.lists.courier-usersRe: [courier-users] COURIERFAX faxing...
FromSent OnAttachments
Daniel MüllerAug 24, 2006 11:53 pm 
Daniel MüllerAug 25, 2006 1:25 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] COURIERFAX faxing MSWORD filesActions...
From:Daniel Müller (muel@tropenklinik.de)
Date:Aug 25, 2006 1:25:04 am
List:net.sourceforge.lists.courier-users

I found out that the filter must have the name application-msword.filter. Now courierfax tries to use it but ends up with a error message:

unknown; I can't find the name of your HOME directory Error: /undefined in Tolles Operand stack: 1.0 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1134/3371(ro)(G)-- --dict:0/20(G)-- --dict:80/200(L)-- Current allocation mode is local Last OS error: 2 ESP Ghostscript 8.15.0: Unrecoverable error, exit code 1 /usr/lib/courier/share/faxmail/application-msword.filter: terminated with exit status 1

Now here is my application-msword.filter:

. /usr/lib/courier/share/faxmail/init

cat >$OUTDIR/.doc /usr/bin/antiword -i2 $OUTDIR/.doc > $OUTDIR/.ps rm -f $OUTDIR/.doc

$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - <$OUTDIR/.ps

If I do a /usr/bin/antiword -i2 example.doc > example.ps on the shell it is working fine.

Where is the mistake? Can You help me?

-----Ursprüngliche Nachricht----- Von: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net] Im Auftrag von Daniel Müller Gesendet: Freitag, 25. August 2006 08:54 An: cour@lists.sourceforge.net Betreff: [courier-users] COURIERFAX faxing MSWORD files

Hello again,

I`m trying to set up courierfax to be able to fax word documents. Is there a way to write a new filter in /usr/lib/courier/share/faxmail corresponding to the application-xxx.filter? The way application-doc.filter. As I know this could be done with antiword and the script doc2ps .

Greetings Daniel