Displaying tar.gz archives
Hey, I would like to add a mailcap entry so that I view the contents of tar.gz archives as a list of filenames, but I'm, not sure how to do it. When I attach one, it is added with the application/octet-streem MIME type. Any thoughts on how to approach this? Thaks, -- Noah Slater, http://tumbolia.org/nslater
Re: Displaying tar.gz archives
On Wed, Jul 22, 2009 at 08:00:47AM +0100, Noah Slater wrote: I would like to add a mailcap entry so that I view the contents of tar.gz archives as a list of filenames, but I'm, not sure how to do it. When I attach one, it is added with the application/octet-streem MIME type. Any thoughts on how to approach this? Look at mime_lookup in the documentation. -- Nicolas Sebrecht
Re: Displaying tar.gz archives
Hi, * Noah Slater wrote: I would like to add a mailcap entry so that I view the contents of tar.gz archives as a list of filenames, but I'm, not sure how to do it. When I attach one, it is added with the application/octet-streem MIME type. Just search the net for mutt.octet.filter. It's a shell script that has useful commands for displaying many MIME types, including listing the contents of a number of archive files. Rocco pgppI5WO9mNSP.pgp Description: PGP signature
Re: Displaying tar.gz archives
=- Rocco Rutte wrote on Wed 22.Jul'09 at 11:26:09 +0200 -= * Noah Slater wrote: I would like to add a mailcap entry so that I view the contents of tar.gz archives as a list of filenames, but I'm, not sure how to do it. When I attach one, it is added with the application/octet-streem MIME type. Just search the net for mutt.octet.filter. It's a shell script that has useful commands for displaying many MIME types, including listing the contents of a number of archive files. There is also mime_lookup application/octet-stream, and then the respective mailcap entry like gzip -dc | tar -tvf - -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL you do: you get what you give.
Re: Displaying tar.gz archives
On Wed, Jul 22, 2009 at 06:29:57PM +0200, Rado S wrote: There is also mime_lookup application/octet-stream, and then the respective mailcap entry like gzip -dc | tar -tvf - Well, I had considered this, but application/octet-stream is a catch-all MIME type, and I can't blithely assume that it will always be this very specific type of file. So going down this path like the wrong approach. Thanks, -- Noah Slater, http://tumbolia.org/nslater
Re: Displaying tar.gz archives
On Wed, Jul 22, 2009 at 11:26:09AM +0200, Rocco Rutte wrote: Just search the net for mutt.octet.filter. It's a shell script that has useful commands for displaying many MIME types, including listing the contents of a number of archive files. Thanks, this works a treat. -- Noah Slater, http://tumbolia.org/nslater
Re: Displaying tar.gz archives
On Wed, Jul 22, 2009 at 05:35:02PM +0100, Noah Slater wrote: On Wed, Jul 22, 2009 at 06:29:57PM +0200, Rado S wrote: There is also mime_lookup application/octet-stream, and then the respective mailcap entry like gzip -dc | tar -tvf - Well, I had considered this, but application/octet-stream is a catch-all MIME type, and I can't blithely assume that it will always be this very specific type of file. So going down this path like the wrong approach. Did you actually look up what mime_lookup means? If you would have done, you wouldn't have to worry. mime_lookup and mailcap do exactly the same as the octet filter script. I just find the script more convenient as I don't have to write tons of mailcap entries. Rocco
Re: Displaying tar.gz archives
On Thu, Jul 23, 2009 at 12:11:08AM +0200, Rocco Rutte wrote: Did you actually look up what mime_lookup means? If you would have done, you wouldn't have to worry. mime_lookup and mailcap do exactly the same as the octet filter script. Nope! My bad! I just find the script more convenient as I don't have to write tons of mailcap entries. Yeah, I think I prefer the mime_lookup method actually. Thanks for prodding me, -- Noah Slater, http://tumbolia.org/nslater