On Sat, Mar 19, 2011 at 03:37:21PM +0100, Christian Ebert wrote:
> * Veljko on Saturday, March 19, 2011 at 14:37:17 +0100
> > I set up my mailcap for various types of files, but some of them are not
> > recognized properly and it just says "application/octet-stream" despite
> > the fact it is .jpg of .pps or something like that. What I want to do in
> > that case is to pipe attachment to apropriate application. What is the
> > right way to do it? I tried something like:
> > vlc %s 
> > but it doesn't work.
> 
> Either use/extend mime.types (you can create an additonal
> mime.types file: $HOME/.mime.types) in conjunction with
> 
> mime_lookup application/octet-stream application/octetstream
> 
> in your muttrc.
> 
> Or use a script like Gary Johnsons mutt_bgrun:
> http://www.spocom.com/users/gjohnson/mutt/
> 
> c
> -- 
> theatre - books - texts - movies
> Black Trash Productions at home: http://www.blacktrash.org
> Black Trash Productions on Facebook:
> http://www.facebook.com/blacktrashproductions

Actually, I'm already using mutt_bgrun (thanks for that great script Gary), but 
thats
just for viewing attachment in the background.

mime.types solved my problem and now all attachments are runned by
appropriate application. Thanks Christian!

Just out of curiosity, how to use pipe ("|") to open attachment with
desired application?

Reply via email to