sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #38676
Re: MS Word attachments i pine
On 21 Jun 2001, Erwin S. Andreasen wrote:
> Peter Toft <pto@xxxxxxxx> writes:
>
> > Men kan en af jer ikke fortælle mig om jeg ikke
> > automatisk kan få pine til at vise mig indholdet af
> > word-filen ved at den anvender vwText bag om ryggen på
> > mig når jeg trykker retur på den attachede fil?
> > Det ville mange personer være glade for.
>
> Muligvis kan man med mailcap. Fra tech-notes.txt som følger med pine:
>
> ,----
> | Starting with version 3.90, _Pine_ honors the "mailcap" configuration
> | system for specifying external programs for handling attachments. The
> | mailcap file maps MIME attachment types to the external programs
> | loaded on your system which can display and/or print the file. A
> | sample mailcap file comes bundled with the _Pine_ distribution. It
> | includes comments which explain the syntax you need to use for
> | mailcap. With the mailcap file, any program (mail readers,
> | newsreaders, WWW clients) can use the same configuration for handling
> | MIME-encoded data.
> `----
>
> Jeg har ikke lige selv rodet med det, men mailcap (/etc/mailcap eller
> ~/.mailcap) filerne ser rimelig overskuelige ud.
Jeg må kunne få det til at virke
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 :)
--
Peter Toft, Ph.D. [pto@xxxxxxxx] http://www.sslug.dk/~pto
"Filer er rå"
Follow ups
References