← Back to team overview

sslug-teknik team mailing list archive

Re: MS Word attachments i pine

 

Peter:

> adder denne til .mailcap - og op kommer staroffice
> 
> application/msword;/home/pto/office52/soffice "%s"
> 
> Denne er indsat i min /etc/mailcap af wv-pakken, men
> den virker ikke hos mig (endnu)
> 
> application/msword; ns="%s"; tmp=`mktemp -q
> /tmp/${ns}.XXXXXX`; \
>     /usr/bin/wvHtml "${ns}" -o ${tmp}; \
>     netscape "file:${tmp}"; /bin/rm -f "${tmp}"
> 
> Mon ikke den kan hackes på plads :)

Hvad med at gemme den følgende tekst som "/home/pto/bin/showdoc"
og indsætte linien:

application/msword;/home/pto/bin/showdoc "%s"

i "/etc/mailcap"?

-----
#!/bin/tcsh

set html = /tmp/showdoc-`\date +"%Y-%m-%d"`.html

mswordview -o ${html} $1

\lynx ${html}

rm -f ${html}*
-----

Jacob
-- 
"Filer er rå!"


Follow ups

References