<<< Date Index >>>     <<< Thread Index >>>

Re: mime_lookup



* Gary Johnson <garyjohn@xxxxxxxxxxxxxxx> [06-03-04 15:13]:
> On 2004-06-03, Matt Price <matt.price@xxxxxxxxxxx> wrote:
> > On Thu, Jun 03, 2004 at 11:53:45AM -0700, Gary Johnson wrote:
> > 
> > > Yes, that's right.  If you're using mime_lookup, you don't need
> > > mutt.octet.filter any more.
> > 
> > what if you want to continue using mutt_bgrun?  Can one use
> > mime_lookup with that script?
> 
> Yes, just add the appropriate line(s) to your mailcap file.  Here
> are some examples from my mailcap:
> 
>     application/msword; mutt_bgrun ooffice %s; test=RunningX
>     application/msword; word2text %s; copiousoutput
> 
>     application/excel; mutt_bgrun ooffice %s; test=RunningX
>     application/excel; excel2text %s; copiousoutput
> 
>     application/pdf; mutt_bgrun acroread +useFrontEndProgram %s; test=RunningX
> 
>     application/postscript; mutt_bgrun ghostview %s; test=RunningX
> 

And the same action will work with octet-filter:

      application/x-gzip; octet-filter %s; copiousoutput
      application/x-gunzip; octet-filter %s; copiousoutput
      
-- 
Patrick Shanahan                        Registered Linux User #207535
http://wahoo.no-ip.org                        @ http://counter.li.org
HOG # US1244711