Extract e-mail attachments with MIME type 'application/ms-tnef'
Ships with tnef binary, so you dont have to install it (alternatively see tinnef for a distribution without binaries)
gem install tnef
Tnef.unpack(@part.attachments[part.filename]) do |file|
puts "FILE: #{file}"
end
git clone git://git.code.sf.net/p/tnef/git fresh
rsync -va fresh/ ext/tnef
cd ext/tnef
aclocal
autoconf
autoheader
automake --add-missing
make
cd ../..
rake install
rm -rf fresh