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

There's also this script:
    http://aperiodic.net/phil/configs/bin/mutt.octet.filter

The basic idea is that it uses the 'file' command to determine what the
filetype of the attachment is.
-- 
Brandon

Reply via email to