26th
October
2008
Mutt and MIME types
posted in Unix tools |
I play with Asterisk for now and i just get a FXO Novalink card (thanks eBay). So when someone call Asterisk just take the message and mail it to me as a WAV file. But how to say to my Mutt to use the right tool for playing this file ? The answer is ~/.mailcap.
The ~/.mime.types is used to associate a file suffix to a MIME type. For the type/application association, we must play with ~/.mailcap.
WAV's stuff here :
audio/wav;/usr/bin/play %s audio/x-wav;/usr/bin/play %s audio/x-pn-wav;/usr/bin/play %s
Done ! /usr/bin/play is the player from SoX.
No this is not a hack nor a tip. Just some kind of reminder for me ;)
This entry was posted
on Sunday, October 26th, 2008 at 8:40 am and is filed under Unix tools.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.